简体   繁体   English

无法创建新的 reactJs 应用程序

[英]Cannot create a new reactJs application

Enter image description here I tried to create my first react js projet, but the generated file is deleted automatically在这里输入图片描述我尝试创建我的第一个react js projet,但是生成的文件被自动删除

Here is the steps that I followed:这是我遵循的步骤:

  1. installed node js安装节点js
  2. installed npm安装了 npm
  3. installed CRA已安装 CRA

But, the generated file of my project is automatically deleted但是,我的项目生成的文件被自动删除

Solution 1:解决方案1:

just try this command :试试这个命令:

"npm cache clean --force" 

Solution 2: only windows OS解决方案 2:仅 Windows 操作系统

on windows OS go to you AppData file and delete npm-cache directory :在 Windows 操作系统上,转到您的AppData文件并删除npm-cache目录:

C:\Users\userName\AppData\Roaming\npm-cache

And re-run you create-react-app .并重新运行你 create-react-app 。

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

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