[英]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.