admin管理员组文章数量:1323734
I am getting following npm WARN deprecated although these packages are not in package.json file. Where these packages are listed? and where should i change their versions?
npm WARN deprecated [email protected]: 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 [email protected]: core-js@<3.0 is no longer maintained and not remended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
I am getting following npm WARN deprecated although these packages are not in package.json file. Where these packages are listed? and where should i change their versions?
npm WARN deprecated [email protected]: 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 [email protected]: core-js@<3.0 is no longer maintained and not remended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
Share
Improve this question
asked Nov 22, 2019 at 7:42
Muzaffar MahmoodMuzaffar Mahmood
1,9082 gold badges18 silver badges21 bronze badges
2
- If you want to hide this warn, you just need to install fsevents as a optional dependency. Just execute: npm i fsevents@latest -f --save-optional ..And the warn will no longer be a bother. – developerKumar Commented Nov 22, 2019 at 7:47
- Does this answer your question? How to deal with deprecation warnings from npm – Dan Dascalescu Commented May 29, 2020 at 19:36
2 Answers
Reset to default 3If 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 .
You can simply update the packages which are giving warning. Or maybe you can suppress these warning messages, npm gives various options to do it. Have a look at this.
These packages are not listed because they are dependencies of other packages that you use, they are not in your json file but some of the packages that are using them need them.
I don't think you have any problems updating them, but I remend saving your status anyway. You can update your project on github up to this point, and if something happens with the update you can always go back to the previous point.
本文标签: javascriptGetting npm WARN deprecatedStack Overflow
版权声明:本文标题:javascript - Getting npm WARN deprecated - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742118631a2421589.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论