我试图建立一个离子项目,但弹出错误。我已经设置了所有的环境变量。像节点,NPM,凉亭一切,离子是工作,和SDK API与更新22离子生成events.js 85未处理的错误事件
E:\io1\apa>ionic build android
running cordova build android
Running command: "C:\Program Files\nodejs\node.exe" E:\io1\apa\hooks\after_prepa
re\010_add_platform_class.js E:\io1\apa
add to body class: platform-android
Running command: E:\io1\apa\platforms\android\cordova\build.bat
events.js:85
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
at child_process.js:1144:20
at process._tickCallback (node.js:355:11)
ERROR building one of the platforms: Error: E:\io1\apa\platforms\android\cordova
\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: E:\io1\apa\platforms\android\cordova\build.bat: Command failed with exit
code 1
at ChildProcess.whenDone (C:\Users\Nitish\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
您需要分享有关您项目的更多信息。我建议你从模板项目开始并尝试编译。这个问题可能由许多因素引起(至少,我遇到过),很难用这么少的信息进行调查 – aorfevre
我从安装cordova和ionic开始,它工作正常,使用离子启动myproject选项卡创建项目也能正常工作,和离子平台添加android工作正常。但是当我尝试构建我的项目时,它会闪烁此错误。 – nitishpisal