DEV Community

Discussion on: Do you know all the popular NPM commands?

Collapse
 
daviddalbusco profile image
David Dal Busco

Thanks for the list, cool share πŸ‘.

The --save flag of the install command has become the default (since npm v6 maybe?). Therefore it can be skipped has it has actually no particular effect as if it would not be provided.

Another install flag I began recently to use quite often is --package-lock-only. Useful to resolve security vulnerabilities without bumping a direct dependency.

npm i package-name --package-lock-only
Enter fullscreen mode Exit fullscreen mode
Collapse
 
knowankit profile image
Ankit Kumar

Nice.

Collapse
 
devwhoruns profile image
devwhoruns

Another important one (just saw a YT video)

npm config set ignore-scripts true