Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm deprecated warnings – do I need to update something?

Tags:

node.js

npm

After doing npm install to fetch a project's dependencies, I regularly get a lot messages like this:

npm WARN deprecated [email protected]: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0

Obviously I don't understand node good enough to conclude what I should do – the project doesn't even include lodash directly.

Do I need to update something on my side? Or is it the package maintainers task?

like image 877
Sven Avatar asked Jan 17 '16 15:01

Sven


People also ask

How do I resolve npm deprecated warn?

If you find the same deprecation messages, then you can try to see if there's an open issue in GitHub discussing the deprecation messages. While you can run the npm install command to get the required package version, it's not necessary as the module should still work.

What does npm warn deprecated mean?

That might mean updating to a new version, or updating your package dependencies. A deprecation message doesn't always mean the package or version is unusable; it may mean the package is unmaintained and will no longer be updated by the publisher.

Can I ignore npm warnings?

If you run npm with --loglevel=error , you should no longer see this or any other warnings. As far as I know, there is no way to selectively suppress warnings in npm .


1 Answers

In general that is the package maintainer's task. You could open an issue on their github repo (if it is on github) and even better would be to make a pull request with the internal dependencies updated.

like image 141
joeycozza Avatar answered Oct 04 '22 12:10

joeycozza