Reputation: 15
I can't update cordova to 5.1.1 and Ionic to 1.6.4. When running
npm update -g cordova
nothing happens.
When running:
npm install -g cordova
i get:
npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.7","npm":"2.7.3"})
npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.7","npm":"2.7.3"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.7","npm":"2.7.3"})
npm WARN installMany normalize-package-data was bundled with [email protected], but bundled package wasn't found in unpacked tree
/usr/bin/cordova -> /usr/lib/node_modules/cordova/bin/cordova
[email protected] /usr/lib/node_modules/cordova
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Also Ionic reminds me to update:
Ionic CLI is out of date:
* Locally installed version: 1.3.14
* Latest version: 1.6.4
* https://github.com/driftyco/ionic-cli/blob/master/CHANGELOG.md
* Run npm install -g ionic to update
But i can't do it.
After installing Cordova and Ionic i still have
cordova -v
4.3.0
and
ionic -v
1.3.14
How can i update?
I'm running Ubuntu 15.04.
Upvotes: 0
Views: 2949
Reputation: 421
Uninstalling and reinstalling as mentioned in many places wasn't working for me.
So I deleted the the dir 'cordova' in:
/usr/local/lib/node_modules/
like this:
sudo rm cordova -R
then: npm install npm -g
then:
sudo npm uninstall cordova -g
then:
sudo npm install cordova -g
And it worked. A similar method might work in Windows too
Upvotes: 3
Reputation: 7025
Make sure you have the latest version of node and npm installed.
Then try uninstalling cordova/ionic and then reinstalling it again.
Note that using npm update doesn't actually update the node package, but the node_modules within that package.
Upvotes: 3