jest: Invalid version of babel-jest in jest-runtime

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Incompatible version of babel-jest spcified in jest-runtime.

npm i jest@22 -D

npm ERR! Darwin 15.6.0
npm ERR! argv "/PATH/node/v6.10.3/bin/npm" "install" "jest@22" "-D"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: babel-jest@^22.2.0
npm ERR! notarget Valid install targets:
npm ERR! notarget 22.1.0, 22.0.6, 22.0.4, etc

npm ERR! notarget It was specified as a dependency of 'jest-runtime'

If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.

What is the expected behavior?

Should install a valid version of babel-jest

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.

N/a

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 17 (3 by maintainers)

Most upvoted comments

Really not sure what’s going on. Tried clearing npm cache, DNS cache, restarting Mac, restarting router, checking that I was hitting the same IP as my colleagues, made sure there was nothing in my hosts that could be messing with it, uninstalled and reinstalled npm. Today I am on the same network as people that it was working for and npm info babel-jest still shows the latest version as 22.2.0.

I can now see 22.2.0, but not 22.2.1. At least I can install jest now. 😃

Looks like an npm issue. We have however just released jest@22.2.1 with a minimal patch, so maybe this will help mitigate the problem.

npm cache clean made no changes. Neither did restarting my machine.

Experiencing the same issue, downgrading to jest 22.1.4 still has dependencies that takes the latest version of babel-jest since it specified in the dependencies package json with ^version and not only as version

Errors from installing with "jest": "^22.1.1", "jest": "22.1.4" and "jest": "^22.2.0" No compatible version found: babel-jest@^22.2.0