简体   繁体   English

npm警告可选的跳过选择性依赖:fsevents@1.2.7

[英]npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7

I'm trying to install Angular using the Angular CLI but I'm getting an error when I try to run this command. 我正在尝试使用Angular CLI安装Angular,但是在尝试运行此命令时遇到错误。

Command 命令

npm install -g @angular/cli

Error: 错误:

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 Version v10.15.3 节点版本v10.15.3

This is a warning not an error, and it's because you're on Windows. 这是警告而不是错误,这是因为您使用的是Windows。 FSevents only works on Mac so it's not needed on Windows and that's why it's SKIPPING OPTIONAL DEPENDENCY . FSevents仅在Mac上可用,因此在Windows上不需要,这就是为什么SKIPPING OPTIONAL DEPENDENCY的原因。

And no as of right now there is no way to get rid of that being printed into the console so just ignore it given the fact that it's not doing anything anyways rather it's just being a bit verbose and telling you that it's not being used. 到目前为止,还没有办法消除被打印到控制台中的问题,因此,考虑到事实是它什么也不做,而只是有点冗长,告诉您它没有被使用,请忽略它。

This is because you're running on windows. 这是因为您正在Windows上运行。 A lot of apps use that library, but it only works on the Mac, so they use something else for Windows and Linux. 许多应用程序都使用该库,但是它仅在Mac上可用,因此它们在Windows和Linux上使用其他功能。 That's why it's listed as "optional". 这就是为什么它被列为“可选”的原因。 You can ignore the warning. 您可以忽略该警告。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 npm WARN notsup 跳过可选依赖:fsevents 不受支持的平台 - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents 依赖关系 - 未安装错误(npm WARN可选SKIPPING OPTIONAL DEPENDENCY:fsevents@^1.0.0(node_modules \ chokidar \ node_modules \ fsevents) - Dependencies - not installed error (npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents) 创建一个新的 angular 项目记录 NPM 警告:npm WARN optional SKIPPING OPTIONAL DEPENDENCY - Create a new angular project logs NPM Warnings: npm WARN optional SKIPPING OPTIONAL DEPENDENCY npm WARN可选dep失败,继续fsevents@0.3.6 - npm WARN optional dep failed, continuing fsevents@0.3.6 npm WARN安装无法安装可选依赖项:不支持 - npm WARN install Couldn't install optional dependency: Unsupported npm是什么意思'跳过失败的可选依赖'? - What does npm mean by 'Skipping failed optional dependency'? 跳过可选依赖:fsevents@1.2.9 不支持的平台:想要 {“os”:“darwin”,“arch”:“any”}(当前:{“os”:“win32”,“arch”:“x64” }) - SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”}) 按需添加 npm 依赖而不是可选依赖有什么缺点吗? - Is there any disadvantage of adding npm dependency on demand instead of optional dependency? npm 错误! 依赖项“fsevents”的对象为空 - npm ERR! Object for dependency "fsevents" is empty 如何将可选标志传递给我的 npm 包的依赖项? - How can I pass an optional flag to a dependency of my npm package?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM