How to solve npm error “npm ERR! code ELIFECYCLE”

后端 未结 30 2762
死守一世寂寞
死守一世寂寞 2020-11-22 02:33

I\'m trying to learn react, so I have this sample code for the full-stack react voting app, and I am trying to get it to work but after running npm install followed by npm s

30条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 02:45

    I've been bothered by this issue for a long time. For me, the version of node was the problem.

    My npm and node were 6.1.0 and 8.11.3, respectively. However, I didn't realize that I had updated my node accidentally to 12.*.*.

    It then began to install GCX stuff whenever npm i, which was unnecessary before.

    I downgraded my node to 8 and it worked!

提交回复
热议问题