npm install 할 때 tar ENOENT: no such file or directory, lstat ~ 에러날 경우

Goldersgreen·2021년 9월 12일
0

개발

목록 보기
2/3
post-thumbnail

npm install 할 때 tar ENOENT: no such file or directory, lstat ... 와 같은 에러가 나서 npm install이 안 될 경우 다음과 같은 방법을 사용하여 해결할 수 있다.

  1. npm cache를 삭제: npm cache clean --force
  2. package-lock.json 파일 삭제: rm package-lock.json
  3. node_modules 파일 삭제: rm -rf ./node_modules/
  4. npm 재설치: npm --verbose install

1개의 댓글

comment-user-thumbnail
2022년 1월 6일

와 이런식으로 오류를 해결하시다니 ㄷㄷ 진짜 고수십니다

답글 달기