gyp: No Xcode or CLT version detected! after macOS update
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.7k
- Forks
- 1.9k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 5
Description
-
Node Version: 14.3.0
-
Platform: Darwin mbp16.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
-
Compiler: Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin -
Module: personal project.
Verbose output (from npm or node-gyp):
gyp: No Xcode or CLT version detected!
This has been going on for several macOS update. xcode-select --install will report CLT is already installed.
The only fix is to remove CLT folder sudo rm -rf /Library/Developer/CommandLineTools and reinstall CLT again.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure on the reported Node 14.3.0 and macOS environment using the verbose node-gyp output, then inspect how node-gyp detects Xcode or the CommandLineTools installation. Use xcode-select and the reported CommandLineTools path to define the expected detection behavior; done means an installed CLT version is detected without removing and reinstalling the folder.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, node.js, python
- Domain
- build-system, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100