Muzaffar Mahmood
Muzaffar Mahmood

Reputation: 1908

Getting npm WARN deprecated

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 recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

Upvotes: 1

Views: 17123

Answers (2)

Anand Bhushan
Anand Bhushan

Reputation: 783

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 .

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.

Upvotes: 3

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 recommend 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.

Upvotes: 1

Related Questions