[英]npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
[英]Getting npm WARN deprecated
我正在關注 npm WARN 已棄用,盡管這些軟件包不在 package.json 文件中。 這些軟件包在哪里列出? 我應該在哪里更改他們的版本?
npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm WARN deprecated core-js@2.6.10: core-js@<3.0 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.
If these packages are not in your package.json, then they must be in package-lock.json which maintains the dependencies of dependencies mentioned in your package.json.
您可以簡單地更新發出警告的軟件包。 或者,也許您可以抑制這些警告消息,npm 提供了各種選項來執行此操作。 看看這個。
這些包沒有列出,因為它們是您使用的其他包的依賴項,它們不在您的 json 文件中,但某些使用它們的包需要它們。
我認為您在更新它們時沒有任何問題,但我還是建議您保存您的狀態。 到目前為止,您可以在 github 上更新您的項目,如果更新出現問題,您可以隨時將 go 恢復到上一點。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.