npm install --production

Category: Node.js & npm/yarn

npm install --production

Install only the dependencies needed to run the app, skipping devDependencies

Installs only the 'dependencies' listed in package.json, skipping 'devDependencies'. Keeps your Docker production image or server smaller.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.