角度/离子项目在构建项目时抛出错误

时间:2020-07-07 22:15:57

标签: javascript node.js angular ionic-cli

我几乎对删除节点提出了所有建议,以重新安装互联网上存在的每个软件包。我想构建的每个角度/离子项目似乎都在发生这种情况。我需要您的经验来解决PC上的这一全球性问题。

ng.cmd run app:serve --host=localhost --port=8100
[ng] 'o\DSCIT.AP.TerminalCheckIn.Mobile\node_modules\.bin\' is not recognized as an internal or external command,
[ng] operable program or batch file.
[ng] internal/modules/cjs/loader.js:638
[ng]     throw err;
[ng]     ^
[ng] Error: Cannot find module 'C:\@angular\cli\bin\ng'
[ng]     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
[ng]     at Function.Module._load (internal/modules/cjs/loader.js:562:25)
[ng]     at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
[ng]     at startup (internal/bootstrap/node.js:283:19)
[ng]     at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

[ERROR] ng has unexpectedly closed (exit code 1).

        The Ionic CLI will exit. Please check any output above for error details. 

0 个答案:

没有答案