使用create-react-app时未创建public,src和scripts文件夹 [英] public, src,and scripts folder not created while using create-react-app

查看:172
本文介绍了使用create-react-app时未创建public,src和scripts文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 create-react-app 使用文档上给出的命令创建新项目,即 npx create-react-app my-app ,但其中不包含 public src 脚本

I am trying to create a new project using create-react-app using the command given on the docs i.e npx create-react-app my-app but it doesn't contain folders like public src and script.

推荐答案

尝试以下步骤:


  1. npm rm -g create-react-app

  2. npm install -g create-react-app

  3. npx create-react-app my-app

  1. npm rm -g create-react-app
  2. npm install -g create-react-app
  3. npx create-react-app my-app

来源

这篇关于使用create-react-app时未创建public,src和scripts文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆