Yarn install --lock-only
Look like npm install --package-lock-only
Yarn doesn't support the feature official(issue 5738).
This is a simple implement.
NOTICE: It doesn't do anything for resolutions or flat
CLI
yarn global add yarn-install-lock-only
yarn-install-lock-only <module> [range]
Usage
; installLockOnly YARN_LOCK_PATH, PACKAGE_JSON_PATH, OUTPUT_YARN_LOCK_PATH, OUTPUT_PACKAGE_JSON_PATH"color", "latest";