▶️ npm install 오류
- s3 적용을 위해 새로운 라이브러리를 설치하던 중 오류가 떴다.
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /Users/youth/.npm/_cacache/content-v2/sha512/7c/39
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 501:20 "/Users/youth/.npm"
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/youth/.npm/_logs/2023-09-01T08_58_16_271Z-debug-0.log
- 찾아보니 npm 캐시 문제일 수도 있다고 해서 캐시 폴더의 소유권을 변경하고 캐시를 삭제 한 후 라이브러리를 다시 재설치했다.
sudo chown -R 501:20 "/Users/youth/.npm"
npm cache clean --force
npm install