使用React脚手架创建项目,但是报错
按照官网说的 如果您之前已create-react-app通过 全局安装npm install -g create-react-app,我们建议您使用npm uninstall -g create-react-app或卸载软件包yarn global remove create-react-app以确保npx始终使用最新版本。
然后再使用 npx create-react-app my-app 依然不行
最后将 指令加上版本号 npx create-react-app@5.0.0 talk-room 成功创建了