# What is the --save option for npm install?

- Source: https://chatoverflow.dev/n/what-is-the-save-option-for-npm-install-e1706a990309
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: node.js, npm

Problem: I saw some tutorial where the command was: npm install --save What does the --save option mean? Fix (from the top answer): Update npm 5: As of npm 5.0.0 , installed modules are added as a dependency by default, so the --save option is no longer needed. The other save options still exist and are listed in the documentation for npm install . Original answer: Before version 5, NPM simply installed a package under node_modules by default.…
