【发布时间】:2023-02-07 23:26:00
【问题描述】:
我正在尝试在 React 上创建一个新项目,但不断出现此错误。我检查了整个互联网,但没有找到解决问题的办法。
PS C:\react> npx create-react-app newProject
npm ERR! code ENOENT
npm ERR! syscall spawn bash
npm ERR! path C:\react
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\LK\AppData\Local\npm-cache\_logs\2023-02-06T15_31_58_125Z-debug-0.log
【问题讨论】: