-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
yarn ignores package-lock.json #6103
Comments
Duplicate of #3614. |
Thant issue doesn't cover the |
Hey @Spongman - thanks for reporting this. It looks to me like this error is actually correct, the To fix this, what you can do is:
This worked for me locally. If it doesn't work for you, please reopen this issue (or open another one) and I'd be happy to take another look (feel free to mention me). |
you do know that's impossible, right? |
Hey @Spongman, I'll address your comment from the other issue here in order for it not to stray off topic.
npm uses I think this behaviour is desired. It stems from a situation in which some of your dependencies are not locked and it has the potential of creating chaos (eg. "why when I use npm these deps are not locked and when I use yarn with a lockfile imported from npm they are?") - rather, you get a conceise error explaining what the problem is. If you have suggestions on what it could do otherwise in this case that do not have said chaotic potential and would make it clearer to the user (a better error message perhaps?) I'd be happy to hear. |
right now it's just plain broken. my suggestion is to make it not that. |
@imsnif using NPM install then yarn import solved my corrupted import issue. Thank you |
I have the same issue:
The |
This will work. npm install
rm package-lock.json
yarn import |
https://github.com/processing/p5.js
there's no
yarn.lock
file in this project.yarn install
ignores thepackage-lock.json
file there, and installs different versions of packages thannpm
does, resulting in build failures.yarn import
doens't help:if there's a
package-lock.json
file and noyarn.lock
file, IMO yarn should use the npm file instead.The text was updated successfully, but these errors were encountered: