2

Enter image description here I tried to create my first react js projet, but the generated file is deleted automatically

Here is the steps that I followed:

  1. installed node js
  2. installed npm
  3. installed CRA

But, the generated file of my project is automatically deleted

3
  • try a different name, sometimes there is a package that is already called memory and it's conflicting. Not sure I the same can happen with react, but in react native it happens. Commented Dec 11, 2019 at 12:20
  • 1
    Try clearing npm cache "npm cache clean --force" Commented Dec 11, 2019 at 12:22
  • Also the best solution will be is to remove cache folder named '.npm' an launching console command once again Commented Dec 11, 2019 at 12:37

1 Answer 1

2

Solution 1:

just try this command :

"npm cache clean --force" 

Solution 2: only windows OS

on windows OS go to you AppData file and delete npm-cache directory :

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

And re-run you create-react-app .

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.