Archive

It is likely you do not have the permissions to access this file as the current user 에러

livemehere 2022. 5. 7. 21:44

EC2에서 빌린 서버에서 npm 패키지를 글로벌로 설치시에 발생하는 문구이다.

현재 접속한 유저가 특정 폴더에 access권한이없어서 발생한 문제임으로

sudo chown -R ubuntu $(npm config get prefix)/{lib/node_modules,bin,share}

권한을 줌으로서 해결이가능하다.

반응형