npm start error with create-react-app

后端 未结 20 1858
长发绾君心
长发绾君心 2020-11-27 10:18

I have a project who I didn\'t touch for 2 weeks. I take it back and now when I try to run npm start I got this error.

> react-scripts start
         


        
相关标签:
20条回答
  • 2020-11-27 10:56

    I had the same error when running

    npm start

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! protest-app@0.1.0 start: `react-scripts start`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the protest-app@0.1.0 start script.
    

    I broke my head on several tabs and applying Solutions from other devs and nothing.

    Until, even using Ubuntu, I closed my vscode and restarted my pc and all my problems were solved. (kkkk zueira) just this one.

    0 讨论(0)
  • 2020-11-27 10:57

    Type unset HOST in your terminal.

    0 讨论(0)
  • 2020-11-27 10:58

    I fix this using this following command:

    npm install -g react-scripts
    
    0 讨论(0)
  • 2020-11-27 10:58

    it is simple but the first time it takes time a few steps to set !!!

    1. you have the latest version on node.

    2. go to the environment variable and set the path "%SystemRoot%\system32".

    1. run cmd as administrator mode.

    2. write command npm start.

    0 讨论(0)
  • 2020-11-27 11:04

    I have faced the following issue.

    Please find the solution:

    1. Add "C:\Windows\System32" to the global PATH environment variable.

    2. Check whether the environment variables has been created for nodejs,npm and composer. if not create one

    1. Run your app.
    0 讨论(0)
  • 2020-11-27 11:07

    it's possible that conflict with other library, delete node_modules and again npm install.

    0 讨论(0)
提交回复
热议问题