Unable to install Cordova plugin- Failed to install 'cordova-plugin-camera':Error: EACCES: permission denied, open

npm ERR! Error: EACCES: permission denied, symlink '../cordova/bin/cordova' -> '/Users/in074811/Documents/node_modules/.bin/cordova'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES: permission denied, symlink '../cordova/bin/cordova' -> '/Users/in074811/Documents/node_modules/.bin/cordova']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'symlink',

npm ERR!   path: '../cordova/bin/cordova',
 Please try running this command again as root/Administrator.








followed these steps:


 npm i cordova@5.1.1 --g


Installing "cordova-plugin-camera" for android
Fetching plugin "cordova-plugin-compat" via npm
npm http GET https://registry.npmjs.org/cordova-plugin-compat
npm http 200 https://registry.npmjs.org/cordova-plugin-compat
Fetching from npm failed: EACCES: permission denied, open '/Users/in074811/.npm/cordova-plugin-compat/1.0.0/package/.npmignore'
Failed to install 'cordova-plugin-camera':Error: EACCES: permission denied, open





rm -rf ~/.npm

Then try, it should work

cordova plugin add https://github.com/apache/cordova-plugin-camera.git


Comments

Popular posts from this blog

What is Android ?