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?
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.
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.
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 .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With