Creates npm-shrinkwrap.json, a lockfile that pins the exact versions of every dependency and is respected by consumers who install your published package. Unlike package-lock.json, it ships inside the tarball. Regenerate it whenever dependencies change.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.