且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

"npx create-react-app appname"不起作用

更新时间:2023-07-31 23:23:40

我遇到了这个问题.显然,不再支持"create-react-app"的全局安装.所以我要做的是:" npm install create-react-app "而不是" npm install -g create-react-app ".然后npx create-react-app起作用了.

I had this problem. Apparently, global installation of 'create-react-app' is no longer supported. So what I did was: 'npm install create-react-app' instead of 'npm install -g create-react-app'. Then npx create-react-app worked.