create-react-app 错误

cwtwac6a  于 2个月前  发布在  React
关注(0)|答案(1)|浏览(33)

npx create-react-app end-to-round-react-app
Need to install the following packages:
create-react-app
Ok to proceed? (y)
You are running create-react-app 4.0.3, which is behind the latest release (5.0.0).
We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:

  • npm uninstall -g create-react-app
  • yarn global remove create-react-app

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/
I don't have create-react-app installed globally on my MacBook pro however it say that it is please help

uemypmqf

uemypmqf1#

同样的,这里真的很奇怪。因为我从未在这个机器上使用过create-react-app。

PS. 解决方法是全局安装它

npm install -g create-react-app

然后

npx create-react-app my-app

相关问题