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
I think like package-lock.json, this was another nice feature of yarn they implemented.
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!
Maybe you were using an npm version lower than 5
Tierney Cyren @bitandbang @PaiNishant @nodejs if you run npm@5 or later you can drop the --save – it's now automatic :) 22:39 PM - 02 Jan 2019 00
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
I think like package-lock.json, this was another nice feature of yarn they implemented.
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!
Maybe you were using an npm version lower than 5