【发布时间】:2021-04-03 17:59:04
【问题描述】:
有人可以帮我吗?
我无法安装 Angular,我不明白我的错误:
> C:\Users\alear>npm i -g @angular/cli
> npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1.
> (https://github.com/visionmedia/debug/issues/797)
> npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
> npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> C:\Users\alear\AppData\Roaming\npm\ng -> C:\Users\alear\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
>
> > @angular/cli@11.0.5 postinstall C:\Users\alear\AppData\Roaming\npm\node_modules\@angular\cli
> > node ./bin/postinstall/script.js
>
> + @angular/cli@11.0.5
> updated 1 package in 21.528s
>
> C:\Users\alear>ng new my-app
> 'ng' is not recognized as an internal or external command,
> operable program or batch file.
【问题讨论】:
-
大家好,我终于找到了错误,令人难以置信,但在某些情况下,我的用户不同,所以......我只是格式化我的笔记本电脑,所以我猜一个可以正确解决的问题
标签: angular