DEV Community 👩‍💻👨‍💻

Cover image for just 2 words: NPM i <packageName> --save
Bek Brace
Bek Brace

Posted on

just 2 words: NPM i <packageName> --save

Hi!
I wanted to write the difference between the --save flags while installing your node dependencies

1-This installs the package and updates the dependencies in your package.json.

npm install <package_name> --save 
Enter fullscreen mode Exit fullscreen mode

2- This installs the package but does not update the dependencies as listed in your package.json.

npm install <package_name> --no-save
Enter fullscreen mode Exit fullscreen mode

3- And this updates the dev Dependencies in your package. These are only used for local testing and development.

npm install <package_name> ---save-dev 
Enter fullscreen mode Exit fullscreen mode

Thanks and see you in the next
Best,
Bek

Top comments (0)

Let's team up together 🤝

We're Hiring

We're hiring for a Senior Full Stack Engineer to join the DEV team. Want the deets? Head here to learn more about who we're looking for.