gpt4 book ai didi

node.js - npm WARN 可选跳过可选依赖项 : fsevents@1. 2.7

转载 作者:搜寻专家 更新时间:2023-11-01 00:19:32 24 4
gpt4 key购买 nike

我正在尝试使用 Angular CLI 安装 Angular,但在尝试运行此命令时出现错误。

命令

npm install -g @angular/cli

错误:

C:\Users\abc>npm install -g @angular/cli
C:\Users\abc\AppData\Roaming\npm\ng -> C:\Users\abc\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\@angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ @angular/cli@7.3.6
updated 1 package in 102.686s

Node 版本 v10.15.3

最佳答案

这是警告而非错误,这是因为您使用的是 Windows。 FSevents 仅适用于 Mac,因此在 Windows 上不需要它,这就是为什么它是 SKIPPING OPTIONAL DEPENDENCY 的原因。

目前还没有办法摆脱打印到控制台中的内容,所以忽略它吧,因为它什么也没做,只是有点冗长,告诉你它不是用过。

关于node.js - npm WARN 可选跳过可选依赖项 : fsevents@1. 2.7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55189422/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com