React src和公共文件夹丢失



我正在尝试创建一个react应用程序。当我运行npx create-react-app myapp命令时,这就是发生的事情。我知道我可以忽略这些漏洞,但src和公共文件夹在应用程序文件夹中丢失。我怎样才能拿到丢失的文件夹?

按以下步骤操作

  1. 删除create-react-app
npm uninstall -g create-react-app

2)使用以下命令更新NPM NPX。

npm update npx

并运行最后一步

npx create-react-app my-app

执行如下命令:

npm I -g npm

npm uninstall -g create-react-app

npm更新npx

最新更新