簡體   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