It happened too many times that I forgot to add --save when installing node modules. Is there a way to append this option by default? So that whenever I type npm install <package> the package is added to dependencies in package.json.
I found out that npm has configuration flags. Setting save=true does exactly what I need. You can add it to .npmrc file (in user's home directory) or invoke a command:
npm config set save=true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With