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.
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 .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With