npm install --no-save package

Category: Node.js & npm/yarn

npm install --no-save package

Install a package into node_modules without adding it to package.json

Downloads the package into node_modules but doesn't write anything to package.json. Good for quick experiments you don't want to commit.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.