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.

Latest versions of Jest packages (e.g. jest-environment-jsdom@25.3.0) have dependencies that don't exist

See original GitHub issue

🐛 Bug Report

Try installing jest-environment-jsdom@25.3.0 and you’ll get errors like this:

Couldn't find any versions for "@jest/environment" that matches "^25.3.0"
? Please choose a version of "@jest/environment" from this list: (Use arrow keys)
...
Couldn't find any versions for "@jest/types" that matches "^25.3.0"
? Please choose a version of "@jest/types" from this list: (Use arrow keys)
...
Couldn't find any versions for "@jest/fake-timers" that matches "^25.3.0"
? Please choose a version of "@jest/fake-timers" from this list: (Use arrow keys)
...
Couldn't find any versions for "jest-util" that matches "^25.3.0"
? Please choose a version of "jest-util" from this list: (Use arrow keys)
...
Couldn't find any versions for "jest-mock" that matches "^25.3.0"
? Please choose a version of "jest-mock" from this list: (Use arrow keys)
...

To Reproduce

Try to install the latest version of Jest packages.

Expected behavior

Packages should install.

envinfo

$ npx envinfo --preset jest
npx: installed 1 in 5.409s

  System:
    OS: Windows 10 10.0.18363
    CPU: (4) x64 Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
  Binaries:
    Node: 12.16.1 - C:\Program Files\Node.js\node.EXE
    Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.13.4 - C:\Program Files\Node.js\npm.CMD
  npmPackages:
    jest: 25.1.0 => 25.1.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
kaiyomacommented, Apr 9, 2020

@kaiyoma Could you explain how you resolved this?

We have an internal registry that links upstream to the normal npm registry, so I just had to log into that and delete all the Jest-related packages in the cache.

Usually problems of this kind can be fixed by doing a “clean install”: blow away node_modules and the lockfile, then yarn install again to get a clean slate and the latest versions of all dependencies.

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

jest-environment-jsdom - npm
Latest version : 29.3.1, last published: 2 months ago. Start using jest-environment-jsdom in your project by running `npm i ...
Read more >
jest-environment-jsdom | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Error Test environment jest-environment-jsdom cannot be ...
I'm receiving an error: Error: Test environment jest-environment-jsdom cannot be found. Make sure the testEnvironment configuration option ...
Read more >
From v27 to v28 - Jest
Upgrading Jest from v27 to v28? This guide aims to help refactoring your configuration and tests.
Read more >
NPM Package Versions - jest/fake-timers - Socket.dev
Version : 28.1.0 was published by simenb. Start using Socket to analyze @jest/fake-timers and its 6 dependencies to secure your app from ...
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