Problem with npm start (error : spawn cmd ENOENT)

后端 未结 5 1464
盖世英雄少女心
盖世英雄少女心 2020-12-03 15:46

I have a problem with my application. Because before when I created an application it worked, but now, it shows me this error and I do not know why and the things I have to

5条回答
  •  有刺的猬
    2020-12-03 16:44

    I had the same problem after I tried to install Mongo DB. I found out that this problem only exists with react-scripts@3.0.0. Try to reinstall your npm with a different react script version. Simply go to your folder in command and reinstall like this:

    npm install react-scripts@2.1.8
    npm start
    

    After that the app worked for me again.

提交回复
热议问题