← 返回命令列表

Linux command

npm-shrinkwrap 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create shrinkwrap file

npm shrinkwrap

Include dev dependencies

npm shrinkwrap --dev

说明

npm shrinkwrap creates npm-shrinkwrap.json. Locks dependency versions for publishing. The command creates publishable lockfile. Unlike package-lock.json, included in package.

参数

--dev
Include devDependencies.
--help
Display help information.

FAQ

What is the npm-shrinkwrap command used for?

npm shrinkwrap creates npm-shrinkwrap.json. Locks dependency versions for publishing. The command creates publishable lockfile. Unlike package-lock.json, included in package.

How do I run a basic npm-shrinkwrap example?

Run `npm shrinkwrap` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --dev do in npm-shrinkwrap?

Include devDependencies.