What is the current behavior?
yarn check fails if there is no lockfile in the directory, yarn install doesn't create on if there are no dependencies in the package.json.
If the current behavior is a bug, please provide the steps to reproduce.
yarn init
yarn install
yarn check # fails
What is the expected behavior?
yarn check doesn't fail.
Please mention your node.js, yarn and operating system version.
Node v5.7.0
Yarn v0.15.1
macOS 10.12
so are you asking if it should generate a lock file on init or install?
yarn install should probably create a lockfile even if no dependencies are installed
for what i understand @bestander this should be closed
Most helpful comment
yarn installshould probably create a lockfile even if no dependencies are installed