npm i | Alias for npm install |
npm install | Install everything in package.json |
npm install --production | Install everything in package.json, except devDependecies |
npm install lodash | Install a package |
npm install --save-dev lodash | Install as devDependency |
npm install --save-exact lodash | Install with exact |
--save
is the default as of npm@5. Previously, using npm install
without --save
doesn’t update package.json.