Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn check fails if there's no lockfiles, yarn install doesn't generate one without any dependencies #679

Closed
bouk opened this issue Oct 11, 2016 · 3 comments

Comments

@bouk
Copy link
Contributor

bouk commented Oct 11, 2016

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

@alecharmon
Copy link

so are you asking if it should generate a lock file on init or install?

@bouk
Copy link
Contributor Author

bouk commented Oct 11, 2016

yarn install should probably create a lockfile even if no dependencies are installed

@voxsim
Copy link
Contributor

voxsim commented Apr 28, 2017

for what i understand @bestander this should be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants