What I Wanted to Do
I wanted to re-install a package, and when re-installing it I wanted it to pull in fresh and latest versions of it’s own dependencies.
What Happened Instead
Re-installing a package, does not refresh the dependencies it pulls in.
npm install: https://github.com/jsheroes/jsheroes.io
- It has a transitive dependency
email@example.com brings in
firstname.lastname@example.org(note that the autodll module has this dep definition for it in the lockfile:
- I would like to re-install that transitive dependency so that it brings in newer lodash versions
I tried to get it un-installed and re-installed again but it didn’t help and it still pulls in
npm uninstall email@example.com && npm install firstname.lastname@example.org
How should I go about updating a transitive dep and pull new versions of its own dependencies?
I also tried plain installing it again
npm install autodll-webpack-plugin@latest
As well as:
npm update autodll-webpack-plugin --depth 9999
Yet none of these pulls in a newer version of lodash than
At this point, I’m not sure if this is a npm cli bug or due to the dependency resolution logic where some other dependency is pinning down the use of
email@example.com. Happy to learn what goes in there.
$ npm --versions 'jsheroes.io': '1.0.0', npm: '6.7.0', ares: '1.14.0', cldr: '33.1', http_parser: '2.8.0', icu: '62.1', modules: '64', napi: '3', nghttp2: '1.34.0', node: '10.13.0', openssl: '1.1.0i', tz: '2018e', unicode: '11.0', uv: '1.23.2', v8: '6.8.275.32-node.36', zlib: '1.2.11' } $ node -p process.platform darwin