Skip to content
Advertisement

What does `–save` do in NPM 5.0 +

In the past --save was used to add the package to the package.json, but as of NPM 5 installing adds packages by default: What is the –save option for npm install?. So does save do anything in NPM 5.0 +?

Advertisement

Answer

Is not necessary any more. It does not even appear in the npm documentation. But I think they leave the option to use if for back compatibility

Advertisement