question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn install inside of jest folder fail

See original GitHub issue

πŸ’₯ Regression Report

yarn fail

jest$yarn
➀ YN0000: β”Œ Resolution step
➀ YN0000: β”” Completed in 1.11s
➀ YN0000: β”Œ Fetch step
➀ YN0013: β”‚ hermes-engine@npm:0.4.1 can't be found in the cache and will be fetched from the remote registry
➀ YN0013: β”‚ jsc-android@npm:245459.0.0 can't be found in the cache and will be fetched from the remote registry
➀ YN0013: β”‚ react-native@npm:0.62.0 can't be found in the cache and will be fetched from the remote registry
➀ YN0001: β”‚ RequestError: Timeout awaiting 'request' for 60000ms
    at ClientRequest.<anonymous> (/home/bogdandor/Documents/jest/.yarn/releases/yarn-sources.cjs:23:51738)
    at Object.onceWrapper (events.js:422:26)
    at ClientRequest.emit (events.js:327:22)
    at ClientRequest.e.emit (/home/bogdandor/Documents/jest/.yarn/releases/yarn-sources.cjs:2:468370)
    at TLSSocket.socketErrorListener (_http_client.js:426:9)
    at TLSSocket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
    at Timeout.f [as _onTimeout] (/home/bogdandor/Documents/jest/.yarn/releases/yarn-sources.cjs:23:58806)
    at listOnTimeout (internal/timers.js:551:17)
    at processTimers (internal/timers.js:492:7)
➀ YN0001: β”‚ RequestError: Timeout awaiting 'request' for 60000ms
    at ClientRequest.<anonymous> (/home/bogdandor/Documents/jest/.yarn/releases/yarn-sources.cjs:23:51738)
    at Object.onceWrapper (events.js:422:26)
    at ClientRequest.emit (events.js:327:22)
    at ClientRequest.e.emit (/home/bogdandor/Documents/jest/.yarn/releases/yarn-sources.cjs:2:468370)
    at TLSSocket.socketErrorListener (_http_client.js:426:9)
    at TLSSocket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
    at runNextTicks (internal/process/task_queues.js:66:3)
    at Timeout.f [as _onTimeout] (/home/bogdandor/Documents/jest/.yarn/releases/yarn-sources.cjs:23:58806)
    at listOnTimeout (internal/timers.js:551:17)
    at processTimers (internal/timers.js:492:7)
➀ YN0001: β”‚ RequestError: Timeout awaiting 'request' for 60000ms
    at ClientRequest.<anonymous> (/home/bogdandor/Documents/jest/.yarn/releases/yarn-sources.cjs:23:51738)
    at Object.onceWrapper (events.js:422:26)
    at ClientRequest.emit (events.js:327:22)
    at ClientRequest.e.emit (/home/bogdandor/Documents/jest/.yarn/releases/yarn-sources.cjs:2:468370)
    at TLSSocket.socketErrorListener (_http_client.js:426:9)
    at TLSSocket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
    at Timeout.f [as _onTimeout] (/home/bogdandor/Documents/jest/.yarn/releases/yarn-sources.cjs:23:58806)
    at listOnTimeout (internal/timers.js:551:17)
    at processTimers (internal/timers.js:492:7)
➀ YN0000: β”” Completed in 4.15m
➀ YN0000: Failed with errors in 4.16m

Last working version

Worked up to version: commit eb9c5681d

Stopped working in version: commit 7946ba637

To Reproduce

Open terminal and type:

clone https://github.com/facebook/jest.git
cd jest
yarn

Expected behavior

Yarn install should run without errors.

Run npx envinfo --preset jest

Paste the results here:

  System:
    OS: Linux 5.4 Ubuntu 20.04 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i3-2370M CPU @ 2.40GHz
  Binaries:
    Node: 12.18.2 - ~/.nvm/versions/node/v12.18.2/bin/node
    Yarn: 2.0.0-rc.36.git.20200706.0d45e383 - ~/.nvm/versions/node/v12.18.2/bin/yarn
    npm: 6.14.5 - ~/.nvm/versions/node/v12.18.2/bin/npm
  npmPackages:
    jest: workspace:packages/jest => 26.1.0 

If delete folder examples/react-native it works correct.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
BogdanDorcommented, Jul 13, 2020

After patch https://github.com/yarnpkg/berry/pull/1583 it works without errors.

0reactions
github-actions[bot]commented, May 11, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

reactjs - Jest-dom unable to find module inside of its folder in ...
Try installing it separately npm install -D jest-dom # or yarn yarn add --dev jest-dom.
Read more >
jest | Yarn - Package Manager
Instant Feedback: Failed tests run first. Fast interactive mode can switch between running all tests or only test files related to changed files....
Read more >
A guide through The Wild Wild West of setting up a mono repo ...
This is were the fun starts! Setting up a mono repo from scratch. We will be using TypeScript, Yarn workspaces, Lerna, and Jest....
Read more >
Jest | IntelliJ IDEA Documentation - JetBrains
You can run and debug tests with Jest right in IntelliJ IDEA. ... You can also see whether a test has passed or...
Read more >
Yarn install fails - Feedback & Bug Reports - CircleCI Discuss
bin/bash -eo pipefail ls -a && yarn install --frozen-lockfile --cache-folder ~/.cache/yarn . .gitignore .vscode nodejs.d.ts .. …
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found