Starting with npm 5 - npm i will save by default (-S is redundant).
If you want to install a package without affecting package.json file, however, you'll need to run npm i package --no-save
npm i package --no-save
The -S param is still needed for confuse and impress your colleagues
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.