-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode detection issue #3137
Comments
Please run: This package?? https://www.npmjs.com/package/output
Perhaps upgrade https://github.com/mapbox/node-pre-gyp/releases |
There you go:
I kinda managed to workaround it by just returning a random string from CLTVersion (IIRC return "20.0.0") and after fighting with my asdf install a bit did manage to get it to install properly. The thing I didn't really say is that Screeps — the thing I'm installing that Something else I've tried is moving aside the |
https://github.com/nodejs/node-gyp/blob/main/macOS_Catalina_acid_test.sh is available on this repo but is probably of limited utility. This file used to exist in the repo to cover these issues but Apple got its act together in later versions of macOS so it was removed. https://github.com/nodejs/node-gyp/blob/05ad2a11e09cae457e3515c3aba22b2c77e18a05/macOS_Catalina.md Providing support for Node.js v10 is not really in scope. |
I've been trying to install a project using Sequelize, which needs to build its own sqlite library. Error log included below.
Since that's giving me an error, I've studied things a little (I have never been near node-gyp, so I do not know what I'm doing there). I don't see anything in Sequelize's
bindings.gyp
file that makes me think it has a hard dependency on Xcode, especially since I already have it installed through Homebrew, so I know the CommandLineTools are sufficient.Looking deeper, I had a look at what was causing the errors in node-gyp. As it turns out, I'm failing all the checks for the compile tools; no Xcode, which is fair since I don't have that installed, but more concerning to me is no CommandLineTools. So I tried looking closer at which part is failing, and there's a few things I notice in CLTVersion:
/usr/sbin/pkgutil --pkg-info
checks for a couple pkgId, none of which I have. I've looked over the complete list inpkgutils --pkgs
doesn't give me anything about CLTs being there so I don't know where the receipt for that went but I'm clearly missing it./usr/sbin/softwareupdate --history
shows me nothing about CLTs as well.So my guess is that the CLT detection code is somehow broken here (I see there's a comment saying it's a reimplementation of Homebrew). Yet Homebrew sees no problem with my install, given it can compile and install sqlite from source.
yarn install
outputThe text was updated successfully, but these errors were encountered: