-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
npm/minipass-fetch
#53Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release
Milestone
Description
Current Behavior:
When trying to install packages, without a previous cache, we get constant timeouts when trying to fetch packages, both locally and in a CI environment. The package that fails is always different, so there isn't a specific package causing the issue.
Stack trace:
19505 verbose stack FetchError: request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19505 verbose stack at ClientRequest.<anonymous> (C:\npm\prefix\node_modules\npm\node_modules\minipass-fetch\lib\index.js:97:14)
19505 verbose stack at ClientRequest.emit (events.js:315:20)
19505 verbose stack at TLSSocket.socketErrorListener (_http_client.js:469:9)
19505 verbose stack at TLSSocket.emit (events.js:327:22)
19505 verbose stack at emitErrorNT (internal/streams/destroy.js:106:8)
19505 verbose stack at emitErrorCloseNT (internal/streams/destroy.js:74:3)
19505 verbose stack at processTicksAndRejections (internal/process/task_queues.js:80:21)
19506 verbose cwd D:\a\1\s
19507 verbose Windows_NT 10.0.17763
19508 verbose argv "C:\\hostedtoolcache\\windows\\node\\14.15.4\\x64\\node.exe" "C:\\npm\\prefix\\node_modules\\npm\\bin\\npm-cli.js" "ci" "--no-audit"
19509 verbose node v14.15.4
19510 verbose npm v7.9.0
19511 error code ERR_SOCKET_TIMEOUT
19512 error errno ERR_SOCKET_TIMEOUT
19513 error request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19514 verbose exit 1
Tried using the fetch-retries, fetch-retry-mintimeout, and fetch-retry-maxtimeout options, but didn't seem to have any effect.
Expected Behavior:
Install packages without timing out.
Steps To Reproduce:
Using a project with workspaces (~6425 packages)
No cache available
Run npm ci
Environment:
OS: Mac OS 11.2.3 or Windows 10
Node: 14.15.4
npm: 7.9.0
Keysox, renannprado, avchugaev, MartinQuesta, Risyandi and 17 more
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release