-
CRA Failed to compile 에러 해결하기ERROR 2023. 10. 11. 00:26
아 에러 캡쳐 못했다..ㅎ
Failed to compile. [eslint] EACCES: permission denied, mkdir '/Users/apple/Desktop/project/node_modules/.cache' ERROR in [eslint] EACCES: permission denied, mkdir '/Users/apple/Desktop/project/node_modules/.cache'
문제점
뭔가 어느 순간부터 내 맥북에선 sudo를 써야 설치가 되고, 계속 퍼미션 에러가 발생하면서 설치가 굉장히 까다로워졌다.
1. 간단하게 프로젝트 할 게 있어서 CRA를 사용하려고 CRA로 프로젝트 다운까지는 완료
2. npm run start 후 처음보는 에러 발생.
3. Failed to compile. [eslint] EACCES: permission denied, mkdir '/Users/apple/Desktop/project/node_modules/.cache' ERROR in [eslint] EACCES: permission denied, mkdir '/Users/apple/Desktop/project/node_modules/.cache'해결방법
1. 프로젝트 터미널창에 아래의 코드를 입력하면 된다. (/.cache) 지워야함.
sudo chown -R $USER (에러에 나타났던 경로)
2. 다시 npm run start
3. 해결
코딩애플님 말로는 맥북 보안상 문제라고 하는데 내가 뭘 잘못건드린걸까...? 어디서 부터 뭐가 잘못된걸까....후
출처 : 에러참고링크
'ERROR' 카테고리의 다른 글
React-slick 에러 깜빡이는 현상 해결하기 (0) 2023.12.21 The Swift pod `FirebaseCoreInternal` depends upon `GoogleUtilities`, which does not define modules. (0) 2023.11.11 Invalid App Store Icon. (부제 : 거의 다왔는데..) (3) 2023.09.30 git pull origin main ssh: connect to host github.com port 22: 에러 해결하기 (1) 2023.09.24 git main 엉킨 것 해결하기 (부제 : 침착해) (1) 2023.09.22