当前位置: 首页 > 文档资料 > Yarn 中文文档 >

yarn check

优质
小牛编辑
121浏览
2023-12-01
yarn check

Verifies that versions of the package dependencies in the current project’s package.json match those in yarn’s lock file.

The switches --integrity and --verify-tree are mutually exclusive.

yarn check --integrity

Verifies that versions and hashed values of the package contents in the project’s package.json match those in yarn’s lock file. This helps to verify that the package dependencies have not been altered.

yarn check --verify-tree

Recursively verifies that the dependencies in package.json are present in node_modules and have the right version. This check does not consider yarn.lock.