티스토리 뷰
반응형
패키지를 다운로드 받아서 npm install 시켰는데 아래와 같은 오류가 발생했다.
$ npm install
> fsevents@1.2.11 install /Users/jybaek/work/foo/client/node_modules/fsevents
> node-gyp rebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at ChildProcess.emit (events.js:160:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Darwin 19.2.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/jybaek/work/foo/client/node_modules/fsevents
gyp ERR! node -v v9.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN @material-ui/icons@4.9.1 requires a peer of @material-ui/core@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @material-ui/icons@4.9.1 requires a peer of @types/react@^16.8.6 but none is installed. You must install peer dependencies yourself.
npm WARN @material-ui/icons@4.9.1 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @material-ui/icons@4.9.1 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN jsdom@15.2.1 requires a peer of canvas@^2.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.2.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.2.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@8.0.2 requires a peer of sass@^1.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@8.0.2 requires a peer of fibers@>= 3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
up to date in 14.527s
(base) jybaek:~/work/foo/client$
에러를 검색해보면 xcode-select --install 하면 된다는데 ...
$ xcode-select --install
xcode-select: error: command line tools are already installed,
use "Software Update" to install updates
위에 메시지처럼 해결책은 아닌 듯 하다... Catalina 버전 올라오면서 생긴 문제같은데 xcode-select가 정상적으로 동작 안되는건지 충돌이 있는건지 아무튼 문제가 있기는 하다. 그렇다면 삭제하고 다시 설치하도록 하자.
sudo rm -rf $(xcode-select -print-path)
xcode-select --install
반응형
'개발새발 > react native' 카테고리의 다른 글
Mac에서 CocoaPods설치중 에러해결 (0) | 2021.03.02 |
---|---|
[React-Native] 리액트 네이티브 주석 처리 방법 (0) | 2021.02.28 |
안드로이드 스튜디오에서 대소문자 구분없이 자동완성하기 (0) | 2021.02.28 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 인천시
- 항공권
- DC 코믹스
- 리눅스
- 도안
- 공원 폐쇄
- 맛집
- 모주귀
- 자빅스
- 이재명
- 신비아파트
- 물놀이터
- 늘솔길공원
- raid5
- 에일리
- 신용산역
- 라스트오리진
- 블랙핑크
- 코로나19
- 색칠공부
- vlive
- zabbix
- 이벤트
- CentOS
- 용산역
- 트와이스
- 물놀이장
- 신비의아파트
- 샘표
- 캐시워크
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함