npm install 시 ESOCKETTIMEDOUT 에러 발생

Hanji·2021년 5월 31일
0

git clone 후 npm install 실행 중 에러 발생

error An unexpected error occurred: "https://...: ESOCKETTIMEDOUT".

npm(yarn) install --network-timeout 1000000
설정 후 다시 시도

...unexpected end of file... 에러 발생.

캐시 삭제 후 시간을 6000000로 바꿔서 다시 실행
-> 설치 완료


#.cache 삭제 방법

npm

npm cache verify or npm cache clean --force

yarn

yarn cache clean

#. 참고

https://velog.io/@kmp1007s/yarn%EC%9C%BC%EB%A1%9C-expo-cli-%EC%84%A4%EC%B9%98-%EC%8B%9C-%EB%B0%9C%EC%83%9D%ED%95%98%EB%8A%94-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0
https://stackoverflow.com/questions/52135815/yarn-is-having-troubles-with-the-network-connection

https://icerabbit.tistory.com/78![](https://velog.velcdn.com/images%2Fjiseon-han%2Fpost%2F2ab49415-7d30-4f3e-9e2b-48d41215e199%2FTIL-2.jpg)
https://stackoverflow.com/questions/55157862/npm-cache-clean-v-s-npm-cache-verify

0개의 댓글