I'm trying to create a react app for the fist time on my local machine. I've successfully installed 'create-react-app' globally using 'npm i -g create-react-app' After I installed it, when I try to create a react app using 'create-react-app' it creates the app's folder with only two files in it, which are the items within the created folder However, the terminal displays this error:
Error: Cannot find module 'cra-template/package.json'
Require stack:
- C:\Users\East-Sound\Desktop\node_modules\react-scripts\scripts\init.js
- C:\Users\East-Sound\Desktop\contactsudacity\[eval]
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
at Function.resolve (internal/modules/cjs/helpers.js:98:19)
at module.exports (C:\Users\East-Sound\Desktop\node_modules\react-scripts\sc
ripts\init.js:117:13)
at [eval]:3:14
at Script.runInThisContext (vm.js:134:12)
at Object.runInThisContext (vm.js:310:38)
at internal/process/execution.js:81:19
at [eval]-wrapper:6:22
at evalScript (internal/process/execution.js:80:60)
at internal/main/eval_string.js:27:3 {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\East-Sound\\Desktop\\node_modules\\react-scripts\\scripts\\init.
js',
'C:\\Users\\East-Sound\\Desktop\\contactsudacity\\[eval]'
]
}
Aborting installation.
node has failed.
Deleting generated file... package.json
Deleting generated file... yarn.lock
Done.
What should I do?