npx create-react-app无法生成public和src文件夹

时间:2020-03-01 02:39:04

标签: reactjs npm create-react-app npx

当我执行npx create-react-app myest时,我的react项目中不会生成公共和src文件夹。

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

enter image description here

1 个答案:

答案 0 :(得分:0)

最初尝试使用但不起作用: npm rm -g create-react-appnpm install -g create-react-appnpx create-react-app <your-app-name>

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

相关问题