Description
npm -v
8.3.0
node -v
v17.2.0
When i type: npx create-react-app mdb-app. After a period of time. I would get this in the terminal:
**npm ERR! code ENOENT
npm ERR! syscall spawn bash
npm ERR! path C:\Users\MSI\Desktop\30days\react\mdb-app\node_modules\core-js
npm ERR! errno -4058
npm ERR! enoent spawn bash ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\MSI\AppData\Roaming\npm-cache_logs\2021-12-15T19_57_27_083Z-debug-0.log**
Aborting installation.
I also tried this, which helped many people on stackoverflow. But there was no use.
npm uninstall -g create-react-app && npm i -g npm@latest && npm cache clean -f
npx create-react-app mdb-app