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

Add with yarn throw error #74

Closed
anthonybriand opened this issue Nov 13, 2018 · 2 comments
Closed

Add with yarn throw error #74

anthonybriand opened this issue Nov 13, 2018 · 2 comments

Comments

@anthonybriand
Copy link

When adding the module as a dependency to my project with Yarn the following error thrown :

error cson-parser@4.0.0: The engine "yarn" is incompatible with this module. Expected version "0.0.0". Got "1.12.3"

This is related to the modification you have made in your package.json :

"yarn": "0.0.0",

Instead of "0.0.0" it will be at least to "^1.12.3"

@jkrems
Copy link
Contributor

jkrems commented Nov 13, 2018

Thanks for bringing it up. The value 0.0.0 is chosen on purpose. See here for some context: #73 (comment)

We're definitely still looking for better ways to mark a library project as "not yarn compatible". Maybe removing the line and dealing with the resulting confusion instead would be a better trade-off. For the time being, adding the ignore-engines line to your project's .npmrc or yarn config should do the trick.

@jkrems
Copy link
Contributor

jkrems commented Feb 20, 2019

Sorry, this kept getting buried in my inbox. I just pushed a change that removes the engines entry. We'll see that we update our automation to deal with this and/or find better ways to signal yarn that it shouldn't be used in this repo.

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

No branches or pull requests

2 participants