Reputation: 895
I am facing this error when adding platform android to cordova project.
Failed to install 'cordova-plugin-whitelist':Error: spawn EACCES
at exports._errnoException (util.js:1026:11)
at ChildProcess.spawn (internal/child_process.js:313:11)
at Object.exports.spawn (child_process.js:380:9)
at exports.spawn (/home/syed.furqan/Desktop/hello/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:134:31)
Cordova version: 6.4.0 Node version: v6.9.1 Npm version: 3.10.8
Kindly help me i am using cordova first time.
Upvotes: 3
Views: 2773
Reputation: 34113
What worked for me was to go into the directory where hooks
, platforms
, and plugins
live (along with other files and directories) and run this:
chmod -R 777 .
Upvotes: 2