11cb0ef41Sopenharmony_ci--- 21cb0ef41Sopenharmony_cititle: npm-shrinkwrap 31cb0ef41Sopenharmony_cisection: 1 41cb0ef41Sopenharmony_cidescription: Lock down dependency versions for publication 51cb0ef41Sopenharmony_ci--- 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci### Synopsis 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ci```bash 101cb0ef41Sopenharmony_cinpm shrinkwrap 111cb0ef41Sopenharmony_ci``` 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ciNote: This command is unaware of workspaces. 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_ci### Description 161cb0ef41Sopenharmony_ci 171cb0ef41Sopenharmony_ciThis command repurposes `package-lock.json` into a publishable 181cb0ef41Sopenharmony_ci`npm-shrinkwrap.json` or simply creates a new one. The file created and 191cb0ef41Sopenharmony_ciupdated by this command will then take precedence over any other existing 201cb0ef41Sopenharmony_cior future `package-lock.json` files. For a detailed explanation of the 211cb0ef41Sopenharmony_cidesign and purpose of package locks in npm, see 221cb0ef41Sopenharmony_ci[package-lock-json](/configuring-npm/package-lock-json). 231cb0ef41Sopenharmony_ci 241cb0ef41Sopenharmony_ci### See Also 251cb0ef41Sopenharmony_ci 261cb0ef41Sopenharmony_ci* [npm install](/commands/npm-install) 271cb0ef41Sopenharmony_ci* [npm run-script](/commands/npm-run-script) 281cb0ef41Sopenharmony_ci* [npm scripts](/using-npm/scripts) 291cb0ef41Sopenharmony_ci* [package.json](/configuring-npm/package-json) 301cb0ef41Sopenharmony_ci* [package-lock.json](/configuring-npm/package-lock-json) 311cb0ef41Sopenharmony_ci* [npm-shrinkwrap.json](/configuring-npm/npm-shrinkwrap-json) 321cb0ef41Sopenharmony_ci* [npm ls](/commands/npm-ls) 33