프로그래밍/React
React app 설치중 No receipt for 'com.apple.pkg.CLTools_Executables' found at '/' . 에러
루돌프___
2021. 3. 11. 15:28
npx 를 이용해서 리액트 앱을 다운받는다.
npx create-react-app .
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!
이라는 에러가 나왔다.
xcode의 문제인데 검색해보니 해결방법이 나와있다.
sudo rm -rf $(xcode-select -print-path) #There will be no output
sudo rm -rf /Library/Developer/CommandLineTool #Just to be sure
xcode-select --install