node.js - NPM warn message about deprecated package -
i installing module globally
$ npm install -g x
and npm says
"npm warn deprecated lodash@1.0.2: lodash@<3.0.0 no longer maintained. upgrade lodash@^4.0.0"
how can find out module has dependency on old version of lodash?
the warning message npm doesn't seem give me clue module references old version (i believe module x not have direct dependency on old version of lodash.).
i got answer similar question: https://stackoverflow.com/a/36335866/1115187
briefly:
npm outdated --depth=3
this command analyze installed npm-packages, , versions. report contain:
- package name
- latest version
- current version
- dependency path (down
depth
level)
hope, information gather info outdated packages.
next step - in touch maintainers of appropriate package , , ask them update package (may be, send pull request).
upd: npm-check
there great npm package: npm-check
, allows check outdated dependencies. probably
most useful combo: npm-check -u
— interactive update. interactive menu shows required information dependencies in current folder, , allows update dependencies in 3 seconds
Comments
Post a Comment