npm config set save-exact true

Category: Node.js & npm/yarn

npm config set save-exact true

Make npm pin every installed package to an exact version instead of a range like ^1.2.3

Makes npm record exact versions like '2.3.1' instead of ranges like '^2.3.1' in package.json. Exact pins give fully reproducible installs without a lockfile.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.