大佬教程收集整理的这篇文章主要介绍了尝试构建Cordova应用程序时获取'spawn cmd ENOENT'(event.js:85),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我又检查了一次系统变量,发现了问题的原因:缺少C:\windows\System32\
变量。我添加了它就解决了我的问题
希望对您有帮助。
当我尝试构建(模拟)Cordova应用程序时,在Windows cmd中得到此错误。
D:\dev\Cordova\toDoList>cordova build android
Running command: D:\dev\Cordova\toDoList\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:1046:32)
at child_process.js:1137:20
at process._tickCallBACk (node.js:355:11)
ERROR building one of the platforms: Error: D:\dev\Cordova\toDoList\platforms\android\cordova\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
以上是大佬教程为你收集整理的尝试构建Cordova应用程序时获取'spawn cmd ENOENT'(event.js:85)全部内容,希望文章能够帮你解决尝试构建Cordova应用程序时获取'spawn cmd ENOENT'(event.js:85)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。