There is something wrong with creating an React project

Asked

Viewed 44 times

-2

When trying to create a new React project the action is not completed. I will attach prints with errors and versions. I have tested many commands I saw on the internet, but none solved my problem. I even uninstalled and reinstalled Node with the latest recommended version. (I want to make it clear that I am a beginner in the area and ask for a little patience in trying to help me).

inserir a descrição da imagem aqui

I already left more than 2 days the notbook on to see if rotated and created, but it didn’t work. The versions are these:

inserir a descrição da imagem aqui

  • 1

    Without any message it becomes difficult to try to help her...

  • That’s what my teacher answered me. But I waited to see any message and continued with this Done.

  • By the prints have no error, just warnings. You tried to run the application?

  • I tried yes, but he did not create the index.js file which, according to the teacher, should be created with the npx create-React-app command. What is created are the following: node_modules package.json Yarn.lock When dou npm start appears: npm ERR! Missing script: start

  • 1

    I saw that there is a problem if the create-React-app installation was done globally. You can try uninstalling the global version with npm Uninstall -g create-React-app and then reinstall locally?

  • I’ll try to do that! Thank you!

Show 1 more comment

1 answer

0

To ensure all possibilities, do the following.
Clear the Node cache

npm cache clean

Then uninstall the create-React-app from your global module

npm uninstall create-next-app -g

Delete your application’s creation folder and create again with the npx command

npx create-react-app todo
  • You’re my friend, you’re still making the same mistake. But thank you for trying

Browser other questions tagged

You are not signed in. Login or sign up in order to post.