Skip to content
npm Docs
npmjs.comStatusSupport
About npm
Getting started
Packages and modules
Integrations
Organizations
Policies
Threats and Mitigations
npm CLI
CLI Commands
npm
npm access
npm adduser
npm audit
npm bugs
npm cache
npm ci
npm completion
npm config
npm dedupe
npm deprecate
npm diff
npm dist-tag
npm docs
npm doctor
npm edit
npm exec
npm explain
npm explore
npm find-dupes
npm fund
npm help
npm help-search
npm hook
npm init
npm install
npm install-ci-test
npm install-test
npm link
npm login
npm logout
npm ls
npm org
npm outdated
npm owner
npm pack
npm ping
npm pkg
npm prefix
npm profile
npm prune
npm publish
npm query
npm rebuild
npm repo
npm restart
npm root
npm run-script
npm search
npm shrinkwrap
npm star
npm stars
npm start
npm stop
npm team
npm test
npm token
npm uninstall
npm unpublish
npm unstar
npm update
npm version
npm view
npm whoami
npx
Configuring npm
Using npm

npm-shrinkwrap

Lock down dependency versions for publication
Table of contents
  • Synopsis
  • Description
  • See Also

Synopsis

 
npm shrinkwrap

Note: This command is unaware of workspaces.

Description

This command repurposes package-lock.json into a publishable npm-shrinkwrap.json or simply creates a new one. The file created and updated by this command will then take precedence over any other existing or future package-lock.json files. For a detailed explanation of the design and purpose of package locks in npm, see package-lock-json.

See Also

  • npm install
  • npm run-script
  • npm scripts
  • package.json
  • package-lock.json
  • npm-shrinkwrap.json
  • npm ls
Edit this page on GitHub