Dependencies - no error was installed (npm WARN option SKIP ADDITIONAL DEPENDENCE: fsevents@ ^ 1.0.0 (node_modules \ chokidar \ node_modules \ fsevents)

I try to get webpack to work in Visual Studio, but keep getting the Dependencies - not installed problem. 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 read this post and Scott Hanselman's solution here . That is, I installed the latest version of node (7.0.0) + npm (3.10.8) and installed Visual Studio to use my node installation (which is definitely used, since I see this in the output: "C:\Program Files\nodejs\npm.CMD" install ).

So, I followed all this, but the fact is that I still get this stupid warning not installed in Visual Studio. Am I doing something wrong or working in one of the versions, but no longer working with the latest node and nmp?

+5
source share
2 answers

This is a warning that **fseventsd** .

it's not a mistake.

the specified MAC specification, running on Windows or Linux , shows this warning, this is the only reason why it shows this warning, you can skip it.

+4
source

Use --no-optional in all environments, except that OSX effectively disables the cause of the warning.

npm install --no-optional

You can also change the log level to an error so that you do not see a warning.

0
source

Source: https://habr.com/ru/post/1259362/


All Articles