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:
- Created 3 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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_modulesand the lockfile, thenyarn installagain to get a clean slate and the latest versions of all dependencies.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.