繁体   English   中英

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

[英]npx create-react-app not generating public and src folder

当我执行 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 后,它卡在了下面的屏幕上

在此处输入图片说明

最初尝试使用但没有成功: 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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM