我是Angular的新手,在安装了node和npm之后,我正在尝试运行"npm install -g @angular/cli"。执行此命令时出现错误:
"npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})"在此之后,将无法识别ng命令。
节点版本为8.11.1,npm版本为4.1.2。
发布于 2018-05-10 11:11:09
fs-events是可选的,与Windows平台无关。
如果你想跳过它:
npm install --no-optional 这似乎是一个常见的问题(https://github.com/npm/npm/issues/14042),除了忽略或跳过它之外,没有好的解决方案。
https://stackoverflow.com/questions/50264887
复制相似问题