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

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

    Make sure to use the latest npm version while installing packages using npm.

    While installing JavaScript, mention the latest version of NodeJS. For example, while installing JavaScript using devtools, use the below code:

    devtools i --javascript nodejs:10.15.1
    

    This will download and install the mentioned NodeJS version. This worked for me.

提交回复
热议问题