DEV Community

Discussion on: npm tips/tricks

Collapse
 
markadel profile image
Mark Adel

Also npm version 5 saves the package in package.json by default, If you don’t want to save, you can override the default saving with --no-save

Collapse
 
nickytonline profile image
Nick Taylor

I think like package-lock.json, this was another nice feature of yarn they implemented.

Collapse
 
jjjjcccjjf profile image
endan

Oh.. that's a neat addition. Last time I checked, it didn't save in my package.json. Maybe I have a lower version of npm. Thanks for this! Really useful!

Thread Thread
 
nickytonline profile image
Nick Taylor

Maybe you were using an npm version lower than 5