pnpm add --save-exact lodash

Category: Node.js & npm/yarn

pnpm add --save-exact lodash

Add a dependency at an exact version

Saves lodash with its exact version, like 4.17.21, instead of a caret range, so installs never drift within a major. pnpm's default is the same range style as npm. The -e flag is the shorthand.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.