1

当我执行 npx create-react-app myest 时,我的 react 项目中没有生成 public 和 src 文件夹。

我尝试使用 npm uinstall -g create-react-app 卸载全局 create-react-app,然后使用 npm install -g create-react-app 重新安装它。但是,在我执行 npx create-react-app myest 后,它卡在了下面的屏幕上

在此处输入图像描述

4

1 回答 1

0

最初尝试使用但没有奏效: npm rm -g create-react-app, npm install -g create-react-app, npx create-react-app <your-app-name>.

以下命令有效: npx --ignore-existing create-react-app Your-AppName

于 2020-10-17T11:53:07.777 回答