-
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
macOS build error #1827
Comments
This issue appears again and again. Exactly the same error for me |
What does the command sw_vers return? |
you might need to upgrade, or reinstall your xcode (or xcode commandline tools). |
The Pandas team did this: pandas-dev/pandas#23424 (comment) |
I'm going to close this as 'answered'. It's not a node-gyp issue. |
@bnoordhuis if it's not a node-gyp issue, maybe you can provide us with more details? or point to the FAQ where's explained how we can overcome it? it's a terribly bad situation and everybody continue blaming node-gyp for such unintuitive log. |
I ran into this issue also when trying to build a working ionic-2 project after upgrading to Catalina from High Sierra. Everything worked fine on High Sierra but when I upgraded I ran into the issue described by stoneWeb when doing the initial npm install to install all the packages needed for my project. clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated] After spending a whole day trying to figure out another "correct" mix of updated node module versions to pull, it came down to either patching a bunch of node modules or figuring out a way to convince clang to use the more recent version so I ended up writing a quick 'C' program to execute clang++ with updated parameters - basically overriding any passed in arguments with -mmacosx-version-min=10.5 or something old and changing it to -mmacosx-version-min=10.9 dynamically without me having to patch various node modules. See the attached program. gcc clang_force.c -o clang_force then copy it to /usr/local/bin That's it. Then just do the npm install again and everything is good. Hope someone finds it useful. |
For those who hit this via Google: Updating to a newer version of Node seems to fix the problem for me. |
For this particular project we were forced to stay at the version of node we were at due to legacy compatibility issues... |
I was able to get around this by running the following prior to
|
How do I solve it?
The text was updated successfully, but these errors were encountered: