Closed
Description
Current Behavior:
Running npm install <package> --no-package-lock --production --no-save
will still install all other dependencies
listed in package.json
.
Expected Behavior:
This did not use to be the case with npm 6. NPM 6 would install only the requested package.
Steps To Reproduce:
npm install cheerio
# this will install 14 packages innode_modules
rm -rf node_modules package-lock.json
npm install local-iso-dt --no-package-lock --production --no-save
This will output added 15 packages
, and node_modules does contain all the cheerio
dependencies, instead of just the zero-dependency local-iso-dt
module.
Environment:
- OS: Ubuntu 20.04
- Node: 14.16.0
- npm: 7.8.0