NPM: Package Management Cheat Sheet

npm iAlias for npm install
npm installInstall everything in package.json
npm install --productionInstall everything in package.json, except devDependecies
npm install lodashInstall a package
npm install --save-dev lodashInstall as devDependency
npm install --save-exact lodashInstall with exact

--save is the default as of npm@5. Previously, using npm install without --save doesn’t update package.json.

Leave a Reply

Your email address will not be published. Required fields are marked *