gpt4 book ai didi

npm - 有什么办法可以避免 fsevents 警告?

转载 作者:行者123 更新时间:2023-12-05 08:07:14 26 4
gpt4 key购买 nike

尝试使用 npm 等进行 react ,我经常收到这些类型的警告:

> npm install axios redux react-redux redux-thunk react-router-dom validator redux-form
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules\jest-haste-map\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.6 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.6: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ redux-thunk@2.3.0
+ validator@10.11.0
+ axios@0.18.0
+ react-router-dom@5.0.0
+ redux@4.0.1
+ react-redux@7.0.2
+ redux-form@8.2.0
added 30 packages from 100 contributors and audited 878734 packages in 23.247s
found 0 vulnerabilities

Apparently我可以忽略它们,但我很好奇是否有办法不收到这些警告?以某种方式配置 npm?向 package.json 添加内容?某处的旗帜?

最佳答案

您可以在安装时通过指定您希望看到的错误类型来使 npm WARN 静音。

您可以运行 npm --logevel=error install

通过使用 --loglevel=error 你将只会看到 npm ERROR 并忽略任何 WARN

关于npm - 有什么办法可以避免 fsevents 警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55855376/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com