ionic platform add时报Error: spawn EACCES错误

  • 2015-07-30
  • 3573℃
Share:

问题描述:

错误信息:

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 runScriptViaChildProcessSpawn (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:188:23)

   at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:131:16)

   at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:114:20

   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)


解决方法:

新创建的app没有添加hooks,执行一下命令进行添加:

ionic hooks add

最新
业务QQ