Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cordova platform add android: Spawn EACCES error

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.

like image 824
Furqan Avatar asked Apr 05 '26 19:04

Furqan


1 Answers

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 .
like image 156
d512 Avatar answered Apr 08 '26 09:04

d512



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!