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
Got the same error while trying to install jest-runtime as a dependency of the critical package..
Have had the same problem for ~2 hours. It started working for us now though.
I fell back to 21 so I can continue work. Still cannot install latest version.
Similiar problem here when installing jest:
Couldn't find any versions for "jest-jasmine2" that matches "^22.2.0"
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
Does it only happen with npm? I didn't have any problems using yarn.
Okay, so the latest version of babel-jest is 22.2, and some of my colleagues are not having this issue. May be npm caching?
https://www.npmjs.com/package/babel-jest
npm cache clean made no changes. Neither did restarting my machine.
Out of interest, is anyone here running npm enterprise?
Edit: Doesn't seem to be anything to do with that.
Looks like an npm issue. We have however just released [email protected] with a minimal patch, so maybe this will help mitigate the problem.
@mjesun yeah. Still not sure how to fix it though. Probably best to leave this issue open for a while for anyone else experiencing the issue.
22.2.0 is here: https://registry.npmjs.org/babel-jest, so this seems like a caching issue
Seems like 22.2.1 fixed the issue.
I can now see 22.2.0, but not 22.2.1. At least I can install jest now. :)
Are you directly talking to NPM? Looks like something in between is doing evilish things 😛
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.
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.