Error: Cannot find module '@babel/core' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) Error: Cannot find module '@babel/core' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) express express

Error: Cannot find module '@babel/core' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)


Install babel-core. Run npm install -D @babel/core.

And since this is a Node.js project, it might also be a good idea to install babel-node. Do this by running npm i -D @babel/node.

Why not just use babel 7 or babel 6 all through rather than use different versions for the different babel packages?


stil getting the same issue

Module build failed: Error: Cannot find module 'babel-core' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)

sharing my package.json:

"dependencies": {    "babel-loader": "^7.1.5",    "cli-color": "^2.0.0",    "colors": "^1.3.3",    "diff": "^4.0.1",    "file-loader": "^4.2.0"}devDependencies": {    "@babel/cli": "^7.6.4",    "@babel/core": "^7.6.4",    "@babel/plugin-proposal-class-properties": "^7.5.5",    "@babel/preset-env": "^7.6.3",    "@babel/preset-react": "^7.6.3",    "babel-eslint": "^8.2.2",    "babel-minify": "^0.3.0",    "babel-plugin-syntax-dynamic-import": "^6.18.0",    "babel-polyfill": "^6.26.0",    "babel-preset-env": "^1.7.0",    "babel-preset-es2015": "^6.24.1",    "babel-preset-react": "^6.24.1",    "babel-preset-stage-2": "^6.24.1",    "babel-register": "^6.24.1",    "cross-env": "^6.0.3",    "css-loader": "^3.2.0",    "del": "^5.1.0",    "eslint": "^4.18.2",    "eslint-config-airbnb": "^16.1.0",    "eslint-plugin-import": "^2.9.0",    "eslint-plugin-jsx-a11y": "^6.0.3",    "eslint-plugin-react": "^7.7.0",    "gulp": "^3.9.1",    "gulp-awspublish": "^3.3.1",    "gulp-babel": "^7.0.1",    "gulp-bump": "^3.1.3",    "gulp-git": "^2.9.0",    "gulp-if": "^2.0.2",    "gulp-prompt": "^1.2.0",    "gulp-rename": "^1.2.2",    "json-loader": "^0.5.7",    "modernizr-loader": "^1.0.1",    "node-sass": "^4.7.2",    "path": "^0.12.7",    "prettier-eslint": "^8.8.2",    "react-hot-loader": "^4.0.0",    "sass-loader": "^8.0.0",    "style-loader": "^1.0.0",    "webpack-cli": "^3.3.9"  },