반응형
React 입문 주 차에 앞서 초기 세팅을 하는 과정에서 터미널에 디렉션대로 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/eunjiroh/.npm/_logs/2022-08-12T01_03_38_948Z-debug-0.log
터미널에서 Brew를 통해서 brew install yarn 명령어를 통해 해결.
반응형
'Sparta x 이노베이션 캠프 > ERROR' 카테고리의 다른 글
ERROR) Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED], AttributeError: 'str' object has no attribute 'decode' (0) | 2022.08.02 |
---|---|
Error) Error 400 (BAD REQUEST) (0) | 2022.07.21 |