npm install --save-exact package

Category: Node.js & npm/yarn

npm install --save-exact package

Install a package pinned to an exact version with no wiggle room (no ^ or ~ range)

Installs a package and writes its exact version number (no ^ or ~ prefix) to package.json. Useful when you want reproducible installs without relying on a lockfile.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.