Try running this.

npm install @babel/core --save

babel changed their package so your babel-core will not be the same as @babel/core.

Answer from Wesgur on Stack Overflow
🌐
npm
npmjs.com › package › babel-core
babel-core - npm
April 27, 2018 - Babel compiler core.. Latest version: 6.26.3, last published: 8 years ago. Start using babel-core in your project by running `npm i babel-core`. There are 12187 other projects in the npm registry using babel-core.
      » npm install babel-core
    
Published   Apr 27, 2018
Version   6.26.3
🌐
Babel
babeljs.io › @babel/core
@babel/core · Babel
var babel = require("@babel/core"); import { transform } from "@babel/core"; import * as babel from "@babel/core"; All transformations will use your local configuration files. babel.transform(code: string, options?: Object, callback: Function) Transforms the passed in code.
Discussions

node.js - Cannot find module '@babel/core' - Stack Overflow
I have tried to reinstall babel-core but is still not being found. More on stackoverflow.com
🌐 stackoverflow.com
babeljs - What is the difference between babel-core and @babel/core? - Stack Overflow
What is the difference between babel-core and @babel/core ? Are they the same thing but different versions? If not so, when do you use one and when do you use the other? Thank you. More on stackoverflow.com
🌐 stackoverflow.com
babeljs - babel vs babel-core vs babel-runtime - Stack Overflow
The babel package is no more. Previously, it was the entire compiler and all the transforms plus a bunch of CLI tools, but this lead to unnecessarily large downloads and was a bit confusing. Now we’ve split it up into two separate packages: babel-cli and babel-core. More on stackoverflow.com
🌐 stackoverflow.com
Requires Babel "^7.16.0", but was loaded with "7.12.3"
Revert your package manager lockfile(in npm's case package-lock.json) and use its command to install packages (in npm's case, npm i) Your last upgrade/audit fix/depend a bot solution didn't work More on reddit.com
🌐 r/reactjs
13
2
August 10, 2024
🌐
GitHub
github.com › babel › babel › releases
Releases · babel/babel
#18036 Remove corejs exports for @babe/runtime-corejs3 (@liuxingbaoyu) ... There was an error while loading. Please reload this page. ... There was an error while loading. Please reload this page. ... babel-build-external-helpers, babel-cli, babel-generator, babel-helper-fixtures, babel-helper-plugin-test-runner, babel-helper-transform-fixture-test-runner, babel-node, babel-parser, babel-plugin-transform-modules-systemjs, babel-types
Author   babel
🌐
GitHub
github.com › babel › babel › blob › main › packages › babel-core › package.json
babel/packages/babel-core/package.json at main · babel/babel
🐠 Babel is a compiler for writing next generation JavaScript. - babel/packages/babel-core/package.json at main · babel/babel
Author   babel
Find elsewhere
🌐
Reddit
reddit.com › r/node › babel-core vs babel-loader
r/node on Reddit: Babel-core Vs Babel-loader
August 6, 2019 - **babel-core** : if you want to use the Node API you can install babel-core, Same as "babel-cli" except you would use it programmatically inside your app.
🌐
jsDelivr
jsdelivr.com › package › npm › babel-core
babel-core CDN by jsDelivr - A CDN for npm and GitHub
April 27, 2018 - A free, fast, and reliable CDN for babel-core. Babel compiler core.
🌐
Babel
babeljs.io › what is babel?
What is Babel? · Babel
Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments. Here are the main things Babel can do for you: ... Polyfill features that are missing in your target environment (through ...
🌐
npm
npmjs.com › package › @babel › core
@babel/core - npm
May 25, 2026 - Babel compiler core.. Latest version: 8.0.1, last published: a month ago. Start using @babel/core in your project by running `npm i @babel/core`. There are 24154 other projects in the npm registry using @babel/core.
      » npm install @babel/core
    
Published   Jun 17, 2026
Version   8.0.1
🌐
Babel
babeljs.io
Babel
Learn more about Babel with our getting started guide or check out some videos on the people and concepts behind it.
🌐
Babel
babeljs.io › usage guide
Usage Guide · Babel
The core functionality of Babel resides at the @babel/core module.
Top answer
1 of 3
46

babel-core is the API. For v5 the babel package is the CLI and depends on babel-core. For v6, the babel-cli package is the CLI (the CLI bin command is still babel though) and the babel package doesn't do anything. babel-runtime I guess is just the runtime (polyfill and helpers) to support code that's already been transformed.

2 of 3
21

TL;DR The things to compare here are:

  1. babel (use for 5.x.x) vs babel-cli+babel-core (pick one for 6.x.x)
  2. babel-polyfill (use for non-libraries) vs babel-runtime+babel-plugin-transform-runtime (use for libraries)

From https://babeljs.io/blog/2015/10/31/setting-up-babel-6:

The babel package is no more. Previously, it was the entire compiler and all the transforms plus a bunch of CLI tools, but this lead to unnecessarily large downloads and was a bit confusing. Now we’ve split it up into two separate packages: babel-cli and babel-core.

npm install --global babel-cli

or

npm install --save-dev babel-core

If you want to use Babel from the CLI you can install babel-cli or if you want to use the Node API you can install babel-core.

babel-runtime just allows polyfills that don't pollute the global space, unlike babel-polyfill which pollutes your global space. From http://babeljs.io/docs/plugins/transform-runtime/:

[babel-runtime] automatically polyfills your code without polluting globals. (This plugin is recommended in a library/tool)

If you use babel-runtime, you should also

npm install --save-dev babel-plugin-transform-runtime

In most cases, you should install babel-plugin-transform-runtime as a development dependency (with --save-dev) and babel-runtime as a production dependency (with --save).

The transformation plugin is typically used only in development, but the runtime itself will be depended on by your deployed/published code.

Also, babel-runtime+babel-plugin-transform-runtime and babel-polyfill are generally mutually exclusive--meaning you should only use one or the other. From a comment here http://jamesknelson.com/the-six-things-you-need-to-know-about-babel-6/:

You should be using either babel-polyfill or babel-runtime. They are mutually exclusive—unless of course you know what you are doing. But they are essentially the same thing. These are just helpers. babel-polyfill achieves the same goal by mutating globals whereas babel-runtime does so modularly. Unless you are developing a library, I’d recommend you use the polyfill.

🌐
GitHub
github.com › babel › babel › discussions › 12605
What's the best practice of babel & core-js? · babel/babel · Discussion #12605
When I use core-js with babel, I want to try my best to reduce the output file size. So I will configure babel to import only some polyfills. First, I use @babel/preset-env with useBuiltIns: usage ...
Author   babel
🌐
Arch Linux
archlinux.org › packages › extra › any › babel-core
Arch Linux - babel-core 8.0.1-1 (any)
View the file list for babel-core · View the soname list for babel-core · Copyright © 2002-2026 Judd Vinet, Aaron Griffin and Levente Polyák. The Arch Linux name and logo are recognized trademarks. Some rights reserved.
🌐
Babel
babeljs.io › docs › core-packages
Babel's core packages · Babel
babel-core: The core module that wraps everything in our transform api (used for integrations) babel-generator: Prints a string from an AST · babel-types: Babel Types is a Lodash-esque utility library for AST nodes · babel-register: The require hook will bind itself to node's require and ...