當(dāng)我嘗試構(gòu)建(模擬)Cordova應(yīng)用程序時(shí),在Windows cmd中得到此錯(cuò)誤。D:\dev\Cordova\toDoList>cordova build androidRunning command: D:\dev\Cordova\toDoList\platforms\android\cordova\build.batevents.js:85 throw er; // Unhandled 'error' event ^Error: spawn cmd ENOENTat exports._errnoException (util.js:746:11)at Process.ChildProcess._handle.onexit (child_process.js:1046:32)at child_process.js:1137:20at 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 1You may not have the required environment or OS to build this project
3 回答

婷婷同學(xué)_
TA貢獻(xiàn)1844條經(jīng)驗(yàn) 獲得超8個(gè)贊
我又檢查了一次系統(tǒng)變量,發(fā)現(xiàn)了問(wèn)題的原因:缺少C:\Windows\System32\變量。我添加了它就解決了我的問(wèn)題
希望對(duì)您有幫助。

開(kāi)滿(mǎn)天機(jī)
TA貢獻(xiàn)1786條經(jīng)驗(yàn) 獲得超13個(gè)贊
轉(zhuǎn)到>控制面板\系統(tǒng)和安全性\系統(tǒng)\高級(jí)系統(tǒng)設(shè)置\環(huán)境變量,然后設(shè)置系統(tǒng)變量路徑C:\Windows\System32\
變量,然后重新啟動(dòng)系統(tǒng)。
- 3 回答
- 0 關(guān)注
- 810 瀏覽
添加回答
舉報(bào)
0/150
提交
取消