Need help with create-react-app error: Cannot find module '@babel/register' #11243
Unanswered
windedge2003
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey ,
I am a new starter who is trying to learn react.js.
I got following error when I was trying to run creat-react-app:
npx create-react-app my-app
npx: installed 67 in 8.507s
Creating a new React app in C:\SourceCode\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
internal/modules/cjs/loader.js:888
throw err;
^
Error: Cannot find module '@babel/register'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at Module._preloadModules (internal/modules/cjs/loader.js:1225:12)
at loadPreloadModules (internal/bootstrap/pre_execution.js:467:5)
at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:70:3)
at internal/main/eval_string.js:14:1 {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'internal/preload' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall:
node -e "try{require('./postinstall')}catch(e){}"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\cheny1\AppData\Roaming\npm-cache_logs\2021-07-24T03_24_17_876Z-debug.log
I tried to install @babel/register globally and it didn't help at all,
any suggestions?
thanks
Beta Was this translation helpful? Give feedback.
All reactions