我的npm版本是5.6.0,我试图通过使用命令ng new
创建angular 4/6项目(angular-cli)。但是,我得到了错误The term 'ng' is not recognized
。
因此,我尝试使用angular-cli
安装npm install -g @angular/cli
。
日志
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\@angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ @angular/cli@7.1.1
updated 1 package in 18.954s
但是,我仍然收到错误=> The term 'ng' is not recognized
。
我不确定,它可能与event-steam's backdoor