I mean why would anyone install a package temporarily and not add it to the dependencies list ?
--no-save uses?
Maybe you just want to test an idea without the need to add a package in the dependency or devDependencies of your package.json file.
if you run:
npm install --no-save express
now, if you check your node_modules folder the package is downloaded but package.json is not updated.
When you try to run your code, since express is available in node_module it can be picked up by your code or any third party library that you have in your project.
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