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

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

    This solution is for Windows users.

    You can open the node.js installer and give the installer some time to compute space requirements and then click next and click remove. This will remove node.js from your computer and again reopen the installer and install it in this path - C:\Windows\System32

    or

    Cleaning Cache and Node_module will work. Follow this steps:

    • npm cache clean --force
    • delete node_modules folder
    • delete package-lock.json file
    • npm install

提交回复
热议问题