安装Angular的问题

编程入门 行业动态 更新时间:2024-10-14 00:29:03

安装<a href=https://www.elefans.com/category/jswz/34/1771089.html style=Angular的问题"/>

安装Angular的问题

我在全局安装Angular时遇到问题。我在下面列出了错误。

C:\Users\DevSa\ng -> C:\Users\DevSa\node_modules\@angular\cli\bin\ng

> @angular/[email protected] postinstall C:\Users\DevSa\node_modules\@angular\cli
> node ./bin/postinstall/script.js

'node' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @angular/[email protected] postinstall: `node ./bin/postinstall/script.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @angular/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\DevSa\AppData\Roaming\npm-cache\_logs\2019-11-26T21_34_00_712Z-debug.log
回答如下:在环境变量PATH列表的顶部添加C:\Program Files\nodejs\,然后在其下方添加C:\Users\{your username}\AppData\Roaming\npm

希望可以解决您的问题。

更多推荐

安装Angular的问题

本文发布于:2024-05-06 21:58:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1753888.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Angular

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!