Ionic 离子型:错误:产生未知

polkgigr  于 2023-03-06  发布在  Ionic
关注(0)|答案(1)|浏览(165)

When I try to run this command:

  • ionic serve --cordova --platform browser*

I got this error msg:
Error: spawn UNKNOWN
at ChildProcess.spawn (internal/child_process.js:403:11) at Object.spawn (child_process.js:553:9) at spawn (C:\Users\Adam\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\cross-spawn\index.js:12:24) at spawn (C:\Users\Adam\AppData\Roaming\npm\node_modules@ionic\cli\node_modules@ionic\utils-subprocess\dist\index.js:170:12) at Subprocess.spawn (C:\Users\Adam\AppData\Roaming\npm\node_modules@ionic\cli\node_modules@ionic\utils-subprocess\dist\index.js:143:16) at Shell.spawn (C:\Users\Adam\AppData\Roaming\npm\node_modules@ionic\cli\lib\shell.js:151:24) at async AngularServeCLI.spawn (C:\Users\Adam\AppData\Roaming\npm\node_modules@ionic\cli\lib\serve.js:363:19) at async AngularServeCLI.spawnWrapper (C:\Users\Adam\AppData\Roaming\npm\node_modules@ionic\cli\lib\serve.js:339:20) at async AngularServeCLI.serve (C:\Users\Adam\AppData\Roaming\npm\node_modules@ionic\cli\lib\serve.js:329:9) at async AngularServeRunner.serveProject (C:\Users\Adam\AppData\Roaming\npm\node_modules@ionic\cli\lib\project\angular\serve.js:117:9)
What is the problem?

8wtpewkr

8wtpewkr1#

运行npm start而不是ionic serve
对我有用!

相关问题