简体   繁体   中英

Cordova platform add windows EACCES error

I was trying to add the windows platform (I use OSX 10.9) and the console gave me this error: EACCES.

bash-3.2# cordova platform add windows WARNING: Applications for platform windows can not be built on this OS - darwin.

Adding windows project...

Error: spawn EACCES

at exports._errnoException (util.js:746:11)
at ChildProcess.spawn (child_process.js:1155:11)
at Object.exports.spawn (child_process.js:988:9)
at Object.exports.spawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:100:31)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/platform.js:151:39
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)

You can't add Windows cordova platform inside OSX because not supported. You need to use Windows based machine.

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