yarn add --exact lodash

Category: Node.js & npm/yarn

yarn add --exact lodash

Add a dependency at an exact version

Saves lodash with a pinned version like 4.17.21 instead of a caret range, so installs never drift within a major. The -E flag is the shorthand, matching npm's --save-exact. Good for applications that want reproducible installs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.