小编BM.*_*lam的帖子

突然 React 无法执行“create-react-app”命令。为什么会发生这种情况以及如何解决?

甚至 --force 或 --legacy-peer-deps 也不起作用。

成绩单:

npx create-react-app my-app

Creating a new React app in /home/zahid/my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

added 1353 packages in 2m

171 packages are looking for funding
  run `npm fund` for details

Initialized a git repository.

Installing template dependencies using npm...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.1.0
npm ERR! Found: react@18.0.0 …
Run Code Online (Sandbox Code Playgroud)

node.js npm reactjs

17
推荐指数
3
解决办法
7911
查看次数

标签 统计

node.js ×1

npm ×1

reactjs ×1