当我安装Angle CLI时,出现以下错误
我的命令:$ npm install -g @angular/cli@latest
错误:
C:\Users\rans\AppData\Roaming\npm\ng ->
C:\Users\rans\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
> @angular/cli@6.0.8 postinstall
C:\Users\rans\AppData\Roaming\npm\node_modules\@angular\cli
> node ./bin/ng-update-message.js
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@6.0.8
updated 1 package in 19.492s
如何清除此错误?
我安装了以下版本:
npm版本6.1.0
节点版本6.9.5
答案 0 :(得分:1)
它可能是您的节点版本。尝试将节点更新为8。