PS E:\新文件夹> npx create-react-app my-app 需要安装以下软件包:create-react-app 确定继续吗?(y) y
您正在运行create-react-app4.0.3,它落后于最新版本 (5.0.0)。
我们不再支持 Create React App 的全局安装。
请使用以下命令之一删除所有全局安装:
创建新应用程序的最新说明可以在这里找到: https ://create-react-app.dev/docs/getting-started/

小智 27
npx clear-npx-cache
Run Code Online (Sandbox Code Playgroud)
进而
npx create-react-app your-app
Run Code Online (Sandbox Code Playgroud)
这个对我有用
来自:npx create-react-app 提示全局卸载不存在的 create-react-app 包?
步骤1npm uninstall -g create-react-app
第2步npm install -g create-react-app
npx clear-npx-cache如果全局卸载后它仍然不适用于您尝试,它对我有用
。
| 归档时间: |
|
| 查看次数: |
2930 次 |
| 最近记录: |