Update Version
Manually Update
To update your PhoneGap CLI to the latest version, run the following command:
$ npm install -g phonegap
**NOTE:** If you get an `Error: EACCES` when running any of the commands here, try prefixing it with `sudo`, such as: `$ sudo npm install -g phonegap`
Update Available Notification
The CLI will also display a notification when any command is used if an update is available:
$ phonegap -v
6.0.3
---------------------------------------
| |
| Update available 6.0.3 -> 6.0.4 |
| Run npm i -g phonegap to update |
| |
---------------------------------------
**NOTE:** This notification will only be displayed once every 24 hours.
To disable the update notifier, you can do one of the following:
- Use the
--no-update-notifer
flag with any PhoneGap command.- For example,
phonegap run ios --no-update-notifier
- For example,
- Disable the update notifier by altering the configuration file.
- Open
~/.config/configstore/update-notifier-phonegap.json
- Set the property
"optOut": true
- Open