Closed Neoares closed 6 years ago
Thanks @Neoares I thought this is already how it works.. no? Checkout this issue Doesn't update package.json file
Afaik, as of npm
5 --save
is automatically inferred
Fine, didn't really know about that inferring. It seems that when you install and specify the package, the --save
is inferred, but if you just do npm install
, then no.
So yes, we can say that the behavior is intended.
It would be nice to allow package upgrading without modifying the package.json semver.
For instance, if I have "^1.2.0" and I upgrade to "1.3.4", the package.json semver would remain as "^1.2.0".
This could be included in a future options tab/panel, and it would basically run
npm install
without--save
flag.