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

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

    React Application: For me the issue was that after running npm install had some errors.

    I've went with the recommendation npm audit fix. This operation broke my package.json and package-lock.json (changed version of packages and and structure of .json).

    THE FIX WAS:

    • Delete node_modules
    • Run npm install
    • npm start

    Hope this will be helpfull for someone.

提交回复
热议问题