안녕하세요! expo start 후, 최신 버전의 업데이트가 필요하다는 내용으로 이해하고 터미널에 npm install -g expo-cli를 입력해보았는데 잠시 다운로드가 되더니 오류메시지가 뜨고 실행이 되지 않습니다. 도움을 부탁드립니다!
감사합니다.
baegwangmin@Gwangminui-MacBookAir study % expo start
┌───────────────────────────────────────────────────────────────────────┐│ ││ There is a new version of expo-cli available (6.0.6). ││ You are currently using expo-cli 6.0.5 ││ Install expo-cli globally using the package manager of your ││ choice; ││ for example: `npm install -g expo-cli` to get the latest version ││ │└───────────────────────────────────────────────────────────────────────┘
The expected package.json path: /Users/baegwangmin/Desktop/study/package.json does not exist
baegwangmin@Gwangminui-MacBookAir study % npm install -g expo-cli
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/expo-cli
npm ERR! dest /usr/local/lib/node_modules/.expo-cli-dKBr48UN
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/expo-cli' -> '/usr/local/lib/node_modules/.expo-cli-dKBr48UN'
npm ERR! [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/expo-cli' -> '/usr/local/lib/node_modules/.expo-cli-dKBr48UN'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rename',
npm ERR! path: '/usr/local/lib/node_modules/expo-cli',
npm ERR! dest: '/usr/local/lib/node_modules/.expo-cli-dKBr48UN'
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/baegwangmin/.npm/_logs/2022-10-01T14_28_43_395Z-debug-0.log