当前位置:网站首页>Solution: NPM err! code ELIFECYCLE npm ERR! errno 1

Solution: NPM err! code ELIFECYCLE npm ERR! errno 1

2022-04-23 20:28:00 Yunmo - brother Kuang's blog

solve :npm ERR! code ELIFECYCLEnpm ERR! errno 1 problem

Today I am studying by myself react When I met a problem , It's just doing it yourself npm start When running a project , The following error reports are generated
 Insert picture description here
Then I confused myself several times , Fooling around , It will only produce more errors . Finally, I asked my senior brother in the communication group , Elder martial brother said that maybe I accidentally moved the configuration file , That is to say node_modules.

terms of settlement :

Delete... From the project node_modules The folder and package-lock.json file , There are many quick deletions on the Internet node_modules Instructions and methods , But I copied it , No way to find out , So manual deletion is the fastest .
 Insert picture description here
Be careful not to put package.json Deleted

then , perform npm install Instruction to reinstall and download the dependent Library .

Finally, re execute npm start You can start the project

版权声明
本文为[Yunmo - brother Kuang's blog]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210551061066.html

随机推荐