-
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
node-gyp fails on Sonoma with CLI only and not XCode (Mac M1 / Apple Silicon) #2992
Comments
A full error log would be extremely helpful. It would be super helpful if we all could see what you are seeing. Would it be possible to create a GitHub Action to show everyone what happens? If you use |
Please try: |
@cclauss Thanks for the ideas! I will try the github action shortly. In the meantime, I tried your env var, did not alter the result much: $ export NODE_GYP_FORCE_PYTHON=python3
|
Single backticks ` in markdown are for one line only. Use triple backticks for multiline strings. |
Hi guys, the action I created (assuming I created it correctly?) seems to point to a bug where a Windows path is being used on Mac: #2993 |
Agreed. Is this a runtime problem or just a test time problem? |
@cclauss Install-time. My |
Facing same issue , when running
|
Python 3.12 requires node-gyp >= v10. Upgrade to node-gyp@10 or downgrade to [email protected]. |
Can you do this without |
@GeoffreyPlitt Now that we have a macOS ARM GitHub Action in place, is it possible to modify it (add https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#tools |
Added a GitHub Action on MacOS ARM64 Apple Silicon test which closed #2993 node-gyp/.github/workflows/tests.yml Lines 100 to 102 in 323957b
I do not believe that solves this problem. It might offer a way to replicate the problem in our GitHub Actions so that everyone can see the failure. Is it possible to modify |
Shoot, it's been 1.5 months and I can't remember how I first encountered this bug, to be honest. I know it was during |
FYI:
I don't know why it works, but it resolved. node-gyp: v9.4.1 |
MacOS Sonoma 14.5 failed After digging in the error log, root cause were errors similar to Solution was: export SDKROOT=$(xcrun --show-sdk-path)
npm install canvas |
so, it's solves this problem?, i can't found what usefull solutions, and why it be closed? |
npm WARN deprecated [email protected]: Issues and pull requests filed against this version are not supported. See the React Native release support policy to learn more: https://github.com/reactwg/react-native-releases#releases-support-policy npm ERR! A complete log of this run can be found in: /Users/danxiao/.npm/_logs/2024-08-28T03_49_26_755Z-debug-0.log |
Run into issue while trying to install For those who uses # verify where is the executable python
which python
# install missing setuptools
python3 -m pip install setuptools |
node-gyp fails on Sonoma with CLI only and not XCode (Mac M1 / Apple Silicon)
At https://github.com/nodejs/node-gyp/blob/main/gyp/pylib/gyp/xcode_emulation.py#L1496C41-L1496C51 it appears to be looking for version numbers at the end of the "xcodebuild -version" command. But for me, that command does not produce version numbers, see below
The code seems to describe itself working well even if the box only has CLI tools and not full Xcode, but that doesn't seem to be the case in reality:
$ uname -a Darwin Geoffs-Mac-mini.local 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:06 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8103 arm64 (base)
$ xcodebuild -version xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Mac M1 / Sonoma 14.4
The text was updated successfully, but these errors were encountered: