ts-jest 설치 안되는 현상: network Invalid response body while trying to fetch https://registry.npmjs.org/ts-jest: aborted
728x90
SMALL

https://velog.io/@librarian/ts-jest-%EC%84%A4%EC%B9%98-%EC%95%88%EB%90%98%EB%8A%94-%ED%98%84%EC%83%81

 

ts-jest 설치 안되는 현상

일단 이렇게 패키지 설치가 안될경우에 패키지의 문제인지 아닌지를 확인하기위해서 스택오버플로우에 검색을 해봤지만 외국인들은 설치가 잘만 되는것 같았다그럼 집에있는 네트워크가 문제

velog.io

 

이 글을 보고 해결했다.

 

현재 내 개인 pc가 아닌 데스크톱에 git clone하고 npm i하려는데,

너무 오래걸리고, 된다한들 아래와 같은 에러가 떴다.

 

 

PS C:\> npm i
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/ts-jest: aborted 
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 If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!

 

https://www.inflearn.com/questions/779041/solved-nestjs-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-%EC%83%9D%EC%84%B1-%EC%8B%A4%ED%8C%A8

 

[SOLVED] NestJS 프로젝트 생성 실패 - 인프런 | 질문 & 답변

KT망을 사용 중일 경우 ts-jest가 설치되지 않는 문제가 있습니다.해당 문제는 npm의 registry를 미러 서버로 설정한 뒤 nest new~를 통해 프로젝트를 생성하고, 다시 원 서버로 복구하시면 됩니다.npm conf

www.inflearn.com

 

kt망의 문제인 듯 하다.

데스크톱에 테더링으로 인터넷 연결을 할 수 없는 상황이라 레지스트리를 바꾸어 해결했다.

 

 

728x90
LIST