npm install 오류 상용 처리 절차

653 단어 RN 개발
1, npm 버 전 검사, 업그레이드 또는 강등 처리
sudo npm install [email protected] -g

2. npm registry 설정 을 확인 하고 교체 합 니 다.
npm config list
npm config set registry "https://registry.npmjs.com/"

 
List of Npm registry:

https://registry.npmjs.org/ (Dfault One)
http://r.cnpmjs.org/
https://registry.npm.taobao.org/
https://registry.nodejitsu.com/
http://registry.mirror.cqupt.edu.cn
https://skimdb.npmjs.com/registry

3. 캐 시 정리
npm cache clear --force
npm verify cache

4. 터미널 재 부팅
5、rm -rf node_modules/ && npm install

좋은 웹페이지 즐겨찾기