-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fails if bundledDependency is missing in .tgz file #886
Comments
Does this happen every time consistently? What are the contents of the |
Yup... I tried it with modules already installed from That folders package.json
|
👍 having the same issue w/ ember-cli. No |
Update: it appears to be due to |
As @mattboldt states in rwjblue/ember-cli-ic-ajax#22 (comment), his workaround only seems to remove this error but still causes issues. |
Seems like this is either a big enough bug or not-yet implemented feature that it deserves at least some documentation as a known limitation. |
As an update, this is still an issue in |
Another similar case:
Will bump the priority |
Can also confirm that this is an issue with yarn |
Still seeing this at |
|
I just got the same issue:
It works if i run yarn install a second time, this is not suitable for continuous integration |
PR is welcome |
I had a similar issue with circleCI and
It turns out this was partially due to running with the After I removed that, my build succeeded but I noticed 2 issues during Run with yarn 0.21.3 on node 6.9.4 (local) and 6.10.0 (circleCI). |
In the case of pdf3json and [email protected] the packages contain incorrect data. I think Yarn could follow this behavior. |
PR to fix this is welcome. |
Raising pri. |
With Yarn v0.27... As far as I can tell, there is no actual code in Yarn for handling The code that actually fails here is when we try to link up bin scripts in
If I comment out that code then I can The latest I'm not a big fan of trying to fix broken packages, but ... If we attempt to resolve this by installing missing Bundled deps also don't end up in the lock file, so this will raise some issues about deterministic builds. If the (edit) NPM 5 does seem to install the missing dependency, but does it in a strange way... If you compare Strangely, it adds the dependency
So as usual the NPM behavior just confuses me more as to what is "correct"... I propose going with a warning in the next version. If we agree, I can submit a PR for this:
|
@rally25rs I agree with your proposed solution. I was actually thinking the very same thing: install the package anyways but give a warning. We can probably be clever and try using the |
I'll get a PR put together as soon as I figure out how to unit test this 😆 On a side-note, part of the other problem if trying to "fix" the broken packages is that there is no way to check for missing bundled deps at the resolution step of the Yarn workflow. It has to extract the .tgz first, which doesn't happen until the link phase. I don't think there is a clean way to "add more packages to the install" once you are in the link phase of the workflow. |
* [#886] Added test for missing bundledDependencies * Requested changes for PR 4046
Fixed now |
Hi! I have a similar problem but with deps fetched via git. A dependency package has a dependency of it's own that is listed in bundledDependencies, but it is missing, when this package is fetched via git. Yarn was failing before, but now will it just show a warning? NPM in the same situation retrieves all deps that are listed in bundledDependencies but are missing from node_modules/, so at the end you have a working package. I understand that this is not an ideal solution, but how should yarn behave in this case? Should it mimic npm or should it warn user and leave his app in an unworkable state? |
@Kuraisu as discussed above, we decided to get out a quick fix to prevent an error, and added a warning. My personal opinion (don't take this a the Yarn stance on the topic) is that we shouldn't be fixing broken packages. Just like if the JS code was invalid, the package author should be responsible for that. From a technical implementation perspective, I wasn't really sure how NPM even determines what to install because I wanted to get something out quickly to at least prevent the errors. As a workaround, you can just |
Running yarn on
0.15.1
on OS X and having issues installing an ember-cli project.package.json
bower.json
The text was updated successfully, but these errors were encountered: