获取错误消息错误:使用IONIC Framework生成EACCES [英] Getting Error Message Error: spawn EACCES using IONIC Framework

查看:117
本文介绍了获取错误消息错误:使用IONIC Framework生成EACCES的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试学习离子交叉平台工具。我已经设置了示例应用程序所需的东西 ionic serve 工作正常,但是当我尝试运行 sudo ionic build android 或者 sudo ionic run / emulate android 它返回错误消息。

I am trying to learn ionic cross platform tool. i have setup thing required for example application ionic serve is working fine but when i try to run sudo ionic build android or sudo ionic run/emulate android it returns with error message.

Error: spawn EACCES
    at exports._errnoException (util.js:746:11)
    at ChildProcess.spawn (child_process.js:1162:11)
    at Object.exports.spawn (child_process.js:995:9)
    at Object.exports.spawn (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:103:31)
    at runScriptViaChildProcessSpawn (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:189:23)
    at runScript (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:132:16)
    at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:115:20
    at _fulfilled (/usr/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/lib/node_modules/cordova/node_modules/q/q.js:749:13)

ia我无法理解它的意思。我有谷歌这个东西,但在应用所有这些解决方案后,我得到了相同的错误。如果有人能告诉我出了什么问题,我将非常感激。

i am unable to understand what does its mean. i have google this thing but after appling all of those solutions i got same error. i ll highly thankful if any one can tell me what is going wrong with me.

推荐答案

问题在于 010_add_platform_class.js 缺少执行权限。

The issue is with the command 010_add_platform_class.js missing execute permission.

您可以使用 chmod + x hooks / after_prepare / 010_add_platform_class .js 给予执行权限。

You could use chmod +x hooks/after_prepare/010_add_platform_class.js to give execute permission.

我在Ionic框架论坛的以下链接中找到了这个解决方案。
http:// forum .ionicframework.com / t / how-to-fix-this-error-spawn-eacces / 20490/6

I found this solution on the Ionic framework forum at the below link. http://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/6

这篇关于获取错误消息错误:使用IONIC Framework生成EACCES的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆