npm install -g angular/cli error: Unsupported platform for [email protected]

问题:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)

原因:

重装node,安装在C盘(默认路径)

你可能感兴趣的:(angular5/6)