03131992
03131992

Reputation: 13

Cordova install plugin

I need to download plugins for my cordova project, but everything I try to do install, for example

call cordova plugin add org.apache.cordova.camera

My command prompt echoes an error:

using node version 0.10.29 which has been deprecated. please upgrade to the
latest node version available <v6.x is recommended>

and I have absolutely no idea how to go about installing it. I have tried updating my cordova to the latest version as well, but it doesn't work.

Upvotes: 0

Views: 833

Answers (2)

yogur
yogur

Reputation: 820

Install latest Nodejs from here: https://nodejs.org/en/download/ which installs latest npm.

According to the repo of the plugin you're using, the command is deprecated. Use this instead: cordova plugin add cordova-plugin-camera

Upvotes: 0

K&#233;vin Giacomino
K&#233;vin Giacomino

Reputation: 487

"please upgrade to the latest node version available v6.x is recommended"

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Instead of using "stable", you could specify a desired version:

sudo n 0.8.21

For more information visit: https://davidwalsh.name/upgrade-nodejs

Upvotes: 1

Related Questions