npm install --save-dev "babel-core@^7.0.0-bridge.0"
npm install @babel/cli -g
npm install @babel/core -g
Check your package.json, some dependency is probably using
an old version of Babel.
One way around if Babel6 is required by the dependency:
$ npm install babel-core@^7.0.0-bridge --save-dev
https://github.com/babel/babel/issues/8206#issuecomment-419705758
Looks like you need
to install babel-core as the docs
suggest: https://jestjs.io/docs/en/getting-started#using-babel
yarn add --dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime
## You'll need to remove the reference to babel-cli since that conflicts with @babel/cli.
## OR
## Ensure @babel packages are on the latest version in package.json
## Remove the package-lock.json and node_modules
## Reinstall using yarn (not npm)
## YOU CAN ALSO TRY
npm install --save-dev jest@24.8.0