fsevents@1.2.4:(Angular 4及更高版本)不支持的平台

时间:2018-12-05 07:05:37

标签: angular angular-cli

我的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

有关

0 个答案:

没有答案