라벨이 npx create-react-app인 게시물 표시

Xcode Command Line 오류(xcode-select --install 오류)

이미지
Xcode Command Line 오류(xcode-select --install 오류) $ npx create-react-app 으로 프로그램을 설치하던 중 err가 발생했다. 오류 내용 중 일부 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! ... ... ... stack overflow 검색결과 Mac OS  Catalina (10.15.*) 버전에서 발생하는 문제라고한다.  Catalina (10.15.*)  이하의 버전들에서는   $ npx create-react-app 명령어를 사용하여도 에러가 발생하지 않는다고 한다. 해결방법 👇🏼 $ xcode-select --print-path # in my case /Library/Developer/CommandLineTools # the next line deletes the path returned by the command above $ sudo rm -rf $(xcode-select --print-path) # install them (again) if you don't get a default installation prompt $ xcode-select --install 첫번째 명령어는 설치 위치 확인 두번째 명령어는 삭제 세번째 명령어는 재설치  순서이다. 세번째 명령어  $ xcode-select --install 사용시 아래 사진과 같은 에러가 발생한다. 현재 소프트웨어 업데이트 서버에서 사용할 수 없기 때문에 해당 소프트웨어를 설치할