-
Notifications
You must be signed in to change notification settings - Fork 41
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
No matching version found for dependencies@undefined #29
Comments
Hey, thanks for reporting this and my apologies for the late reply! Could you walk me through the reproduction please? From downloading the files to a specific folder until you get this error? Because I'm getting different results and I want to make sure it's not just a specific repo particularity (eg. I needed to change the version in package.json because npm wouldn't accept 1.xxxx). |
Hi @imsnif I actually work with @Xquick and I've decided to investigate my self and found out that there is a
|
Hey @DavidReinberger, thanks! I appreciate you looking into this. Ouch, that does not look good!... When I convert the file, this does not happen to me. Which is more than a little odd. If I may ask... if you convert again now on a different box, does the field appear there? How about if you remove node_modules, reinstall them (with yarn) and then convert? |
@imsnif So I've tried to copy out my |
Just a heads up, my colleague ran this on windows and it worked fine. So the problem is probably with macOS? 🤷♂️ |
Hey @DavidReinberger - I think this has to do with some optional dependencies that are only installed on macOS (I'm using linux). I'm guessing this has to do with the way we traverse the node_modules folder. Could you run this in the folder after a clean npm install? |
are you sure about the |
Sorry, for some reason I thought it came out of the box on macOS. :) I think you can install |
ping @DavidReinberger ? |
Issue also exists on up to date Arch Linux |
So I went into the package-lock.json with vim. You have |
Thanks for the details, @djvs! I'm on arch too, so that's good news - will be easier to debug. :) Can you consistently reproduce it on your box (the creation of the Much appreciated! |
Worked on Windows for me as well. |
We have a few projects which were failing due to this issue, on both MacOS and Linux. For us, the workaround is as follows:
Hope this excerpt might be of use to others while this bug persists. |
Hey @oliverlockwood - thanks for this workaround. I think most of the cases talked about in this thread involve private repositories (which makes it hard to reproduce and thus address). I hope this is not a lot to ask, but I wonder if you could help me out with some brief debugging? If you try to reproduce this not through some CI or script, but simply by cloning the repository, installing with yarn and then running synp... does this happen? |
@imsnif - I believe so; yes. My examples are also in private repos, but I will experiment with trimming down to something I can make public as a mini-repo to reproduce this issue. Watch this space... |
@imsnif a number of interesting observations. All of this was executing manually on my machine (a Mac OS X). Note that the original issue (on an internal project) also reproduced on Linux; so with luck the stripped-down variant should also do so if necessary.
Now for some comparisons.
gc-stats@^1.2.1:
- version "1.2.1"
- resolved "https://nexus-host-redacted/repository/npm/gc-stats/-/gc-stats-1.2.1.tgz#f3e1bf7e28a385780db22a81681b064932e358da"
- integrity sha512-CPQfMBQPGkqG4upxCn4zHxYZo20woPClSeqnC/WK8pFqlfAtz6zpxbOfnmxOIDYiC26H/pYlWQfdoPVGoqxFUA==
+ version "1.4.0"
+ resolved "https://nexus-host-redacted/repository/npm/gc-stats/-/gc-stats-1.4.0.tgz#66cd194c5a8eae1138407300bc6cb42c2f6f3cd6"
+ integrity sha512-4FcCj9e8j8rCjvLkqRpGZBLgTC/xr9XEf5By3x77cDucWWB3pJK6FEwXZCTCbb4z8xdaOoi4owBNrvn3ciDdxA==
dependencies:
- nan "^2.10.0"
- node-pre-gyp "^0.11.0"
+ nan "^2.13.2"
+ node-pre-gyp "^0.13.0" From all of this, I was able to construct a very simple example repo, just including Note that we do have other projects which end up generating quite a large block in the Let me know if you need anything else in order to progress this! |
Wow, @oliverlockwood, great work!! We finally found the issue!!! :D :D |
@imsnif thanks for this. Unfortunately, although version If you would like to add some debugging and either publish beta packages or just put the code on a branch, I'm happy to run such things against our private repos and send you the output, to help dig into this further. Alternatively please let me know how else I can help out. |
Issue description:
After converting yarn.lock to package-lock.json I run
npm install
.output is
Disclaimer
I reinstalled node_modules fresh using
yarn install
, then I used following command to convertyarn.lock
synp --source-file yarn.lock
and it ran correctly and createdpackage-lock.json
Attaching files
yarn.lock
https://pastebin.com/FZWC7mUSpackage-lock.json
https://ufile.io/3rsmrpackage.json
https://pastebin.com/9fMwYfGtThe text was updated successfully, but these errors were encountered: