👉 에러
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/npm/-/npm-8.5.1.tgz failed, reason: getaddrinfo ENOTFOUND your-proxy-server
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
👉 원인
npm 설치 중에 네트워크 연결 문제가 발생했습니다. 프록시 설정이나 네트워크 설정을 다시 확인해야 합니다. ENOTFOUND 오류는 DNS 서버에서 주어진 호스트 이름에 대한 IP 주소를 찾을 수 없을 때 발생합니다.
👉 해결
npm config --global rm proxy
npm config --global rm https-proxy
'TIL > 트러블슈팅' 카테고리의 다른 글
[Chocolatey] An existing Chocolatey installation was detected. (0) | 2025.01.22 |
---|---|
[SpringBoot] failed to lazily initialize a collection of role: could not initialize proxy - no Session (0) | 2024.02.29 |
[SpringBoot] No acceptable representation (1) | 2024.02.09 |
[Docker] Docker failed to initialize (0) | 2023.12.12 |
[Docker] denied: requested access to the resource is denied (2) | 2023.11.26 |