Npm 安装程序包和警告消息

Npm 安装程序包和警告消息,npm,visual-studio-code,package,Npm,Visual Studio Code,Package,在vscode中使用npm安装软件包时,我会收到如下某些警告消息。我应该为他们担心还是没事 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted

在vscode中使用npm安装软件包时,我会收到如下某些警告消息。我应该为他们担心还是没事

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})      
npm WARN backend@1.0.0 No description
npm WARN backend@1.0.0 No repository field.

使用npm安装任何软件包时,通常不需要担心警告。您可以使用以下选项运行npm以仅查看错误:

--loglevel=error
就你而言: fsevents仅在OSX上运行,无法在windows和linux上安装,因此会显示警告

当警告说这样的话时:

NPM WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3

fsevents
不在Windows上运行,但正如消息所说,它是可选的依赖项。如果您想知道它的作用,请参阅例如…谢谢,我可以忽略上面写着“…”的警告吗。。。。不再维护“?我已更新我的答案,以包括此类场景。请检查一下。
npm install --save core-js@^3