FE/Error

npm 실행 에러

ardoh 2024. 8. 7. 21:25

에러 메시지

npm error code EACCES
npm error syscall open
npm error path /Users/doh/.npm/_cacache/index-v5/2c/7c/c9815551da12cffdca41aeb03709231e9d009cc383ac90a2148780c3e753
npm error errno EACCES
npm error
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error   sudo chown -R 501:20 "((파일경로))/.npm"
npm error A complete log of this run can be found in: /Users/doh/.npm/_logs/2024-08-07T12_03_40_186Z-debug-0.log
Something went wrong installing JavaScript dependencies. Check your npm logs. Continuing to create the app.
Error: npm install exited with non-zero code: 1

 

해결

sudo chown -R 501:20 "((파일경로))/.npm"