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

后端 未结 30 2351
死守一世寂寞
死守一世寂寞 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条回答
  •  -上瘾入骨i
    2020-11-22 02:54

    I am using react-create-app in Windows 10, on February 2nd, 2019 with latest NodeJS 11.9.0 and npm 6.7.0 (When you install NodeJS, the npm is existing). I think case of node packages are corrupted is rarely, the main cause permission.

    At the beginning, I put project directory at Desktop, it is belong to C:\ driver. I move to another directory of another driver. Therefore, I remove "file permission" concern. Every work well and simple.

    cd /d D:\
    mkdir temp20190202
    npx create-react-app my-app
    cd my-app
    npm start
    

    It is ok, not put project folder in a directory of C:\ (or other driver what contains Windows Operating system).

提交回复
热议问题