개발 공부
[React] create-react-app 설치 시 Permission 관련 이슈는 어떻게 해결하는가
New_Line
2021. 2. 13. 19:09
문제 상황 : 현재 아래 에러코드가 떠있는 상태
Error: EACCES: permission denied, access '/usr/local/lib/node_modules/create-react-app/node_modules/ansi-regex'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/create-react-app/node_modules/ansi-regex'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/create-react-app/node_modules/ansi-regex'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
해결 : 아래 링크, 흔한 에러 3번째 케이스 보고 해결
online.codingapple.com/unit/react1-install-create-react-app-npx/
폴더 수정 권한이 없다고 뜨는 오류였음.