[英]How to fix this Error: spawn EACCES
I am trying to run this command ionic build android but it is giving me this error can anyone tell me what am I doing wrong. 我正在尝试运行该命令ionic build android,但它给了我这个错误,有人可以告诉我我在做什么错。 I have run the following permission command on app folder sudo chmod -R a+rwx /appfolder but htis does'nt help
我已经在应用程序文件夹sudo chmod -R a + rwx / appfolder上运行了以下权限命令,但htis并没有帮助
******************************************************
Upgrade warning - for the CLI to run correctly,
it is highly suggested to upgrade the following:
Please update your Node runtime to version >=0.12.x
******************************************************
Running command: /home/kwanso/lastProject5/MyFirstApp/hooks/after_prepare/010_add_platform_class.js /home/kwanso/lastProject5/MyFirstApp
add to body class: platform-android
Running command: /home/kwanso/lastProject5/MyFirstApp/platforms/android/cordova/build
ANDROID_HOME=/home/kwanso/Desktop/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
Running: /home/kwanso/lastProject5/MyFirstApp/platforms/android/gradlew cdvBuildDebug -b /home/kwanso/lastProject5/MyFirstApp/platforms/android/build.gradle -Dorg.gradle.daemon=true
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn EACCES
at errnoException (child_process.js:1011:11)
at Process.ChildProcess._handle.onexit (child_process.js:802:34)
ERROR building one of the platforms: Error: /home/kwanso/lastProject5/MyFirstApp/platforms/android/cordova/build: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: /home/kwanso/lastProject5/MyFirstApp/platforms/android/cordova/build: Command failed with exit code 8
at ChildProcess.whenDone (/home/kwanso/.npm-packages/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
Any help will be appreciated. 任何帮助将不胜感激。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.