Search code examples
cordovacordova-plugins

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.


Solution

  • 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