커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
npm yarn 설치 오류가 발생했습니다.
[왕초보] 나만의 수익성 앱, 앱개발 종합반
2주차
북마크
강*루
댓글
2
추천
0
조회수
12
조회수
12
답변 완료


맥 os 환경입니다.

에러 코드를 구글링 해보았지만

에러 원인을 몰라서 해결하기 어렵습니다

에러 원인이 무엇이고 어떻게 조치해야할까요??도와주세요ㅜㅜ



스파르타 즉문즉답




작성한 코드 및 에러 메세지


kangharu@ganghaluui-MacBookPro ~ % npm install -g yarn

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

npm ERR! code EACCES

npm ERR! syscall mkdir

npm ERR! path /usr/local/lib/node_modules/yarn

npm ERR! errno -13

npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/yarn'

npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/yarn'] {

npm ERR!  errno: -13,

npm ERR!  code: 'EACCES',

npm ERR!  syscall: 'mkdir',

npm ERR!  path: '/usr/local/lib/node_modules/yarn'

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.


npm ERR! A complete log of this run can be found in:

npm ERR!   /Users/kangharu/.npm/_logs/2022-11-23T04_44_42_041Z-debug-0.log



취소
 공유
취소
댓글 0
댓글 알림
나의얼굴