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

后端 未结 30 2352
死守一世寂寞
死守一世寂寞 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:47

    Faced this exact problem,

    for me it worked by deleting package-lock.json and re run npm install

    if it doesn't resolve try

    1. delete package-lock.json
    2. npm cache clean --force
    3. npm install
    4. npm start

提交回复
热议问题