Hello, I am loading libraries to my project with "npm" and the following message is continuously displayed:
***C:\Users\victor\Desktop\michaelgram>npm install --save page npm WARN [email protected] No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any "} (current: {"os":"win32","arch":"x64"})
- [email protected] added 2 packages in 31.769s***
When I try to install [email protected] it won't let me. It has nothing to do with node, and if this can affect the project in the future. I have searched Google without success. I am using Windows 10, and the Node.js terminal command prompt. But with the "cmd" of the system the WARNs also came out and with other libraries it also happened to me. Thanks.
It's not an error, it's a warning saying it hasn't found the optional fsevents package. You can ignore it because that package is only needed for MacOS (whose kernel is called Darwin), while you are using Windows.
To make it a bit clearer: On Mac OS X, in order to detect file system changes (hence the name, File System Events ), we need this library. On other operating systems (Linux and Windows) it is unnecessary (in addition to not being supported), so it cannot/should not be installed.
Angular and other tools (Karma, for example) use these events to reload tests or applications under development in real time, when detecting changes in the files with the source code, so they require this library to have all its functionality in OS X.
Therefore, unless you are using Mac OS X as your development environment, you can ignore this warning.
If you want to avoid the warning, you can add the option
--no-optional
: