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?
1条答案
按热度按时间8wtpewkr1#
运行
npm start
而不是ionic serve
。对我有用!