简体   繁体   English

依赖关系 - 未安装错误(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)

I am trying to get webpack to work in Visual Studio, but keep getting the Dependencies - not installed problem. 我试图让webpack在Visual Studio中工作,但继续获取Dependencies - not installed问题。 I get this error in the output: 我在输出中收到此错误:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

I've read this post and Scott Hanselman's solution in here . 我在这里读过这篇文章和Scott Hanselman的解决方案。 Ie I have installed latest node (7.0.0) + npm (3.10.8) and set the Visual Studio to use my node installation (that is definietely used since I see this in output: "C:\\Program Files\\nodejs\\npm.CMD" install ). 即我已经安装了最新的节点(7.0.0)+ npm(3.10.8)并将Visual Studio设置为使用我的节点安装(因为我在输出中看到这个,所以这是明确使用的: "C:\\Program Files\\nodejs\\npm.CMD" install

So I followed it all, but the thing is: I still get this stupid not installed warning in Visual Studio. 所以我遵循了一切,但问题是:我仍然在Visual Studio中得到这个愚蠢的not installed警告。 Am I doing something wrong or it was working in one of the versions, but not working anymore with latest node and nmp? 我做错了什么或它是在其中一个版本中工作,但不再使用最新节点和nmp?

It is a warning that **fseventsd** . 这是**fseventsd**的警告。

its not an error. 这不是一个错误。

its a MAC OS Specified, running on windows or Linux show this warning,this the only reason it is showing this warning, you can skip it.. 它是一个MAC OS Specified,在WindowsLinux上运行时会显示此警告,这是显示此警告的唯一原因,您可以跳过它。

Use --no-optional on all environments excepts OSX effectively disabling the cause of the warning. 在除OSX之外的所有环境中使用--no-optional有效地禁用警告的原因。

npm install --no-optional npm install --no-optional

Also you can change the log level to error so that you won't see warning. 您还可以将日志级别更改为错误,以便您不会看到警告。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM