简体   繁体   English

npx 没有在反应中创建公共和 src 文件夹

[英]npx not creating public and src folders in react

when executed the command to create the env for react npx create-react-app myfirstapp, command was successfull but there were few warnings.当执行命令为 react npx create-react-app myfirstapp 创建环境时,命令成功,但几乎没有警告。 Src and public folders not created.未创建 Src 和公用文件夹。 OS Windows 10 home edition.操作系统 Windows 10 家庭版。

在此处输入图像描述

Had similar issues, I solved it by executing:有类似的问题,我通过执行解决了它:

  • npm install -g create-react-app
  • create-react-app >>app-name<<

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

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