npm install -g angular/cli error: Unsupported platform for [email protected]
程序员文章站
2022-05-29 23:43:36
...
问题:
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盘(默认路径)