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

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.



강의 자료와 같이


//도구를 가져와 설치하는 npm 의 설치 명령어 install과

//컴퓨터 어디서든 설치하고 있는 도구를 사용할 수 있게 해주는 -g 옵션 명령어

npm install -g yarn

//설치가 완료된다음

yarn -v


를 터미널에 붙여 넣었더니 이렇게 나오는데 이게 맞나요 ?? ㅠㅠ








작성한 코드 및 에러 메세지

agdahae@bagdahaeui-MacBookPro ~ % //도구를 가져와 설치하는 npm 의 설치 명령어 install과

//컴퓨터 어디서든 설치하고 있는 도구를 사용할 수 있게 해주는 -g 옵션 명령어

npm install -g yarn

//설치가 완료된다음

yarn -v

zsh: no such file or directory: //도구를

zsh: no such file or directory: //컴퓨터

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

npm ERR! code EACCES

npm ERR! syscall rename

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

npm ERR! dest /usr/local/lib/node_modules/.yarn-Jrexx8nI

npm ERR! errno -13

npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/yarn' -> '/usr/local/lib/node_modules/.yarn-Jrexx8nI'

npm ERR! [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/yarn' -> '/usr/local/lib/node_modules/.yarn-Jrexx8nI'] {

npm ERR!  errno: -13,

npm ERR!  code: 'EACCES',

npm ERR!  syscall: 'rename',

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

npm ERR!  dest: '/usr/local/lib/node_modules/.yarn-Jrexx8nI'

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/bagdahae/.npm/_logs/2022-10-28T09_02_04_828Z-debug-0.log

zsh: no such file or directory: //설치가

1.22.19이콘을 눌러 코드박스를 만들어 보세요.

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!



스파르타 즉문즉답


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