Skip to content

I can't create react app #11766

Closed
Closed
@dinhthang1195

Description

@dinhthang1195

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions