NPM 오류 정리

Sizz-J

·

2021. 9. 7. 10:47

안녕하세요? NPM오류로 시간을 허비하는 일이 간혹 생기다보니... 저같은 분이 생기지 않도록 그리고 저를 위해서

NPM오류를 정리해놓으려고 합니다.

 

모~든! NPM 오류를 이 곳에 해결법과 함께 정리할 예정이니 이 글을 읽고 존재하는 문제는 댓글로 남겨주시면 감사하겠습니다.

 


NPM Error - E404

이 문제는 NPM이 참조해야할 Node패키지의 URL주소가 옳바르지 않아서 그런 것 입니다. 다음과 같은 명령어를 작성하여 URL을 지정하고 해결합니다.

 

npm config set registry http://registry.npmjs.org

 


NPM Error - NPM설치안됨, NPM연결안됨, loadldealTree, ECONNRESET, ETIMEOUT, Proxy, ENOSEL, ELIFECYCLE

 

1. 환경변수에 NPM과 Node가 제대로 적용되어있는지 확인

https://imspear.tistory.com/31

 

Window에서 npm이 실행되지 않을때 (Node.js설치했는데도 npm이 실행되지 않을 때)

npm이 실행되지 않는 경우에는 Node.js를 설치하지 않은 경우 Node.js를 설치했는데 실행되지 않는 경우 만약 Node.js를 설치하지 않았다면 아래의 링크를 따라가 설치하면 됩니다. https://imspear.tistory.co

imspear.tistory.com

 

2. Node모듈의 충돌이 일어났을 경우를 생각하여, 노드캐시 초기화 및 NPM재설치

https://hellominchan.tistory.com/10

 

[Node.js] npm 소개와 설치 및 사용법

[Node.js] npm 소개와 설치 및 사용법 (글쓴날 : 2020.02.10) * 이 글은 Node.js를 처음 입문하시는 분들을 위한 글입니다. * Node.js의 또 다른 패키지 매니저인 Yarn에 대해서는 다루지 않습니다. 1. npm이란..

hellominchan.tistory.com

npm cache clean --force

npm rebuild 

 

3. Package.json 이름이 모듈이름과 중첩되지 않는지 확인

http://melonicedlatte.com/web/2017/07/11/193208.html 

 

[Node.js] code ENOSEL 에러 해결 방법 - Easy is Perfect

C:\Users\Documents\brackets\ExpressExample>npm install express --savenpm ERR! code ENOSELFnpm ERR! Refusing to install package with name "express" under a packagenpm ERR! also called "express". Did you name your project the same

melonicedlatte.com

 

4. 기존 Proxy 삭제 후 재설정

https://stackoverflow.com/questions/18419144/npm-not-working-read-econnreset

 

npm not working - "read ECONNRESET"

I'm having a problem with npm, I cant install anything. Here is the error messages: C:\Windows\system32>npm install -g yo npm http GET https://registry.npmjs.org/yo npm http GET https://registry.

stackoverflow.com

npm config get proxy

npm config rm proxy

npm config rm https-proxy

npm config set registry http://registry.npmjs.org

728x90