简体   繁体   中英

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.

对我有用的是进入hooksplatformsplugins所在的目录(以及其他文件和目录)并运行:

chmod -R 777 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM