我正在尝试让 webpack 在 Visual Studio 中工作,但不断出现 Dependencies - not installed
问题。我在输出中收到此错误:
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"})
我读过这个post和 Scott Hanselman 在 here 中的解决方案. IE。我已经安装了最新的 Node (7.0.0) + npm (3.10.8) 并将 Visual Studio 设置为使用我的 Node 安装(因为我在输出中看到了这一点,所以肯定会使用它:"C:\Program Files\nodejs\npm.CMD"安装
)。
所以我完全照做了,但问题是:我仍然在 Visual Studio 中收到这个愚蠢的 not installed
警告。我是不是做错了什么,或者它在其中一个版本中工作,但不再使用最新的 Node 和 nmp?
最佳答案
**fseventsd**
是一个警告。
这不是错误。
它是指定的 MAC 操作系统,在 windows 或 Linux
上运行显示此警告,这是它显示此警告的唯一原因,您可以跳过它..
关于node.js - 依赖项 - 未安装错误(npm WARN optional SKIPPING OPTIONAL DEPENDENCY : fsevents@^1. 0.0 (node_modules\chokidar\node_modules\fsevents),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40449117/