Skip to content

Instantly share code, notes, and snippets.

@adamrosloniec
Created October 28, 2020 17:52
Show Gist options
  • Save adamrosloniec/9abc8ca032563f7094557d76931b3f7e to your computer and use it in GitHub Desktop.
Save adamrosloniec/9abc8ca032563f7094557d76931b3f7e to your computer and use it in GitHub Desktop.
macos - how to fix error: gyp: No Xcode or CLT version detected!
# How to fix error - gyp: No Xcode or CLT version detected!
# source: https://stackoverflow.com/questions/60573595/npm-install-fails-on-node-gyp-rebuild-with-gyp-no-xcode-or-clt-version-detec
# 1.
xcode-select --print-path
# in my case /Library/Developer/CommandLineTools
# 2.
# the next line deletes the path returned by the command above
sudo rm -rf $(xcode-select --print-path)
# 3.
# install them (again) if you don't get a default installation prompt
xcode-select --install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment