-
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
Yarn hangs at [1/4] Resolving packages or fails silently if --verbose #6610
Comments
I am also expiericing the mentioned behavoir. Using the following package.json {
"name": "test-yarn-resolving-package",
"version": "1.0.0",
"description": "test-yarn-resolving-package",
"main": "index.js",
"author": "-",
"license": "MIT",
"private": true,
"dependencies": {
"react": "^16.6.1",
"react-dom": "^16.6.1"
},
"devDependencies": {}
} Steps to reproduce:
Method two:
|
+1 |
Hi, I am facing the same issue with Regarding my network, I am using a whitelisting for fetching from my private registry. @arcanis : any clues about what could be happening? |
+1 |
Good news - in our case it seems to be more related to our network than anything else :D Sorry ! |
@JackTheRipper For the tooling it should not matter whether your network is fast or slow, whether it pass every packet or it drops 80% of. This heisenbug is awfull especially for people with poor connectivity - as tool does not timeout you must either watch net speedometer or set an ancient alarm clock beside your box then tinker manually with node or module's versions and you never know in what configurations yarn will progress. It gives that uneasy feeling that you can not trust in your basic tool. |
@ohir , I agree with you that the tool has to tell you what's up. But in our case, it's due to some weird settings in our proxy which creates a timeout while trying to retrieve the tarballs. And that's why |
Just some info in case anyone is looking into this - No proxy (http/https) here and network connection is stable but yarn fails with network connectivity issues. Downgrading to 1.9.4 seems more stable (and exits with the proper non-zero code) all subsequent versions bail with status code zero (which is a lie) and everything fails. Private registry. |
launching with |
@profrook's solution worked for me, although it took ages! |
I'm having the same issues as well, but also specifically on |
Same here with 1.13.0 / 1.14.0rc in Fedora 28 with a specific package with #develop. EDIT: After a few retries it works but waiting a lot of time to resolve the dependency |
I'm having the same problem trying to use my private registry. The package is being transfered from it but it stuck at 'Resolving packages...' My private registry is an apache http server with no authentication. the packages are in tgz format wich coontains package.json and the source files. Yarn 1.17.3 |
I met the same hang issues on [1/4] Resolving packages ... By Fixed by changing the
|
Closing as fixed in v2 where the timeout logic is less susceptible to this sort of issue |
Apologies for resurrecting this, but I found this while experiencing exactly the same behaviour in yarn v2. My yarn install always hangs retrieving one specific large package (mediasoup). Yarn version is 2.4.0, and I've tried setting:
In Thanks for any help you can give me. |
Open a issue in the v2 repo if you feel like this is a bug, I would assume it's network issues though which we can't do anything about.
Do you mean |
[email protected]
[email protected]
[email protected]
Linux newbox 4.4.153
A mrc test case: fresh install of webpack alone (after purging all caches etc.)
yarn install
It is resolving some packages then it got stuck at
number-is-nan@^1.0.0
Indicator spins but network download drops down to few hundred bps.
Without --verbose it then will hang (likely till lingering socket closes).
Repeated, it will hang on a few different packages from webpack deep deps.
Eg.
ansi-regex
,number-is-nan
and a few others. None of them being huge.If ran with
--verbose
yarn fails silently. Nothing is produced. The log last linesare:
The beginning of the log got
.yarnrc
four times:NOTE paths redacted. No .npmrc present.
Yarn found project .yarnrc twice! And then twice homedir's one.
/tmp/yarnfa/.yarnrc
is a copy of~/.yarnrc
Current webpack version as of this filling is 4.23.1
NOTE possibly related to: #5055, #5491, #5512
The text was updated successfully, but these errors were encountered: