![](/img/trans.png)
[英]create-react-app doesn't create src and public folder even though its the latest version
[英]create-react-app is not including src and public folder
它說您使用的是不包含模板的過時版本的 CRA。 更新然后重試。
試試 npx 方法。 運行npx create-react-app my-app
。 它應該在my-app
文件夾中安裝所有 react 文件和文件夾。
記得運行cd my-app
進入my-app
文件夾並通過運行npm start
檢查一切是否正常
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.