npm install package

Category: Node.js & npm/yarn

npm install package

Install a package and add it to dependencies in package.json

Downloads a package from the npm registry and adds it to the 'dependencies' section of package.json — these are packages needed at runtime.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.