Repository navigation
Is this an Issue with MACOS catalina? #1927
Description
EDITED FOR PEOPLE JUST GETTING HERE:
node-gyp v7 should solve these issues.
Please follow the steps in macOS_Catalina.md
sha3@1.2.3 install /Users/drjosephdavids/node_modules/keccakjs/node_modules/sha3
node-gyp rebuild
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected! I'M RUNNING XCODE 11.2beta
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/drjosephdavids/node_modules/keccakjs/node_modules/sha3
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/Users/drjosephdavids/package.json'
npm WARN drjosephdavids No description
npm WARN drjosephdavids No repository field.
npm WARN drjosephdavids No README data
npm WARN drjosephdavids No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sha3@1.2.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/drjosephdavids/.npm/_logs/2019-10-16T17_41_20_021Z-debug.log
- Node Version:
- Platform:
- Compiler:
- Module:
Verbose output (from npm or node-gyp):
Paste your log here, between the backticks. It can be:
- npm --verbose output,
- or contents of npm-debug.log,
- or output of node-gyp rebuild --verbose.
Activity
rvagg commentedon Oct 16, 2019
Did you add that "I'M RUNNING XCODE 11.2beta" to the output? That may be the main problem, using a beta version of xcode. But you could also try installing the command-line tools to solve this:
xcode-select --installand thensudo xcodebuild -license acceptafter that succeeds.gcc -vshould show you have something likeApple clang version 11.0.0 (clang-1100.0.33.8).joe-nano commentedon Oct 16, 2019
No I didn’t I was merely saying that I do have XCode installed
mkellsy commentedon Oct 16, 2019
I have the same issue
rvagg commentedon Oct 16, 2019
please try installing the commandline tools like I suggested, it's different to the full xcode
mkellsy commentedon Oct 16, 2019
When I run xcodebuild i get this
mkellsy commentedon Oct 16, 2019
When I run gcc -v I get this
richardlau commentedon Oct 16, 2019
See #569.
mkellsy commentedon Oct 17, 2019
Thanks that works. I will let my users know.
cclauss commentedon Oct 19, 2019
@joe-nano Can this issue be closed?
dreamerblue commentedon Oct 20, 2019
Same issue to me. node-gyp rebuild fails.
I'm using 10.15 Catalina and installed XCode CLI by
xcode-select --install. But nocom.apple.pkg.DeveloperToolsCLILeo,com.apple.pkg.DeveloperToolsCLI,com.apple.pkg.CLTools_Executablesfound.Related source:
node-gyp/gyp/pylib/gyp/xcode_emulation.py
Lines 1298 to 1318 in a84b885
Is there a way to fix it without installing full XCode.app?
cclauss commentedon Oct 20, 2019
sudo xcodebuild -license acceptdreamerblue commentedon Oct 20, 2019
sudo xcodebuild -license acceptcannot solve this problem without XCode.app.Returns:
naiba commentedon Oct 21, 2019
Same issue.
168 remaining items
kboedges commentedon Oct 15, 2020
Downloading it directly from https://developer.apple.com/download/more/ worked for me: Command Line Tools for Xcode 12.2 beta 3
zoheiry commentedon Oct 16, 2020
Uninstalling and reinstalling works, but I have to do this quite often and xCode is pretty large and takes ages to reinstall, there must be a better way than having to reinstall it every few days
cclauss commentedon Oct 16, 2020
Yes. #2235
slikts commentedon Oct 26, 2020
This is what worked for me: downloading the non-beta Command Line Tools for Xcode 12, deleting the existing directories, installing it and then running:
Part of the confusion is that every version seems to use a different path. The non-beta path is as above, while the more recent ones are under either
/Applications/Xcode.appor/Applications/Xcode-beta.app. Here's a script to select the existing directory automatically:cclauss commentedon Oct 26, 2020
#2244 which just landed works for me.
mhusseini commentedon Oct 29, 2020
#1927 (comment)
This worked for me.
jrking365 commentedon Oct 29, 2020
worked for me too
valeriejg commentedon Nov 6, 2020
Started getting "No receipt for 'com.apple.pkg.CLTools_Executables' found at '/' -npm" after opening Terminal following the Catalina 10.15.7 supplemental update - this solution fixed it great.
aaroncraigongithub commentedon Jan 15, 2021
Just wanted to comment that following the instructions for "I did all that" (https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md#i-did-all-that-and-the-acid-test-still-does-not-pass--) resulted in a broken XCode installation.
The XCode.app file has been removed, but the App Store thinks it's still installed, so doesn't present an option to re-install.
To re-install, I had to manually delete the Xcode.app file from /Applications.
ohbeep commentedon Jan 29, 2021
This works for me after installing the Command Line Tools for Xcode from apple(https://developer.apple.com/downloads/index.action). I have this issue every time the command line tools was updated by Mac's system software update.
armenzg commentedon Feb 10, 2021
Should this check still be in place for folks on Big Sur?
It seems that every so often when there's an update from Mac this comes back.
I followed the documentation to get me back into a good state. You can find my output and steps here.
RunlaiDeng commentedon Apr 14, 2021
get sign
goya commentedon Jun 4, 2021
i had this error when running it as a dependancy.
once i installed it globally
it worked fine. hope this helps someone who doesnt want to re-download xcode.
ketsapiwiq commentedon Aug 8, 2021
I had this error and tried everything except installing the whole XCode 7Go package.
npm install...npm install --ignore-scriptsseems to work also in my case but apparently it doesn't install everything.spiritcapsule commentedon Jun 22, 2022
the acid test (https://github.com/nodejs/node-gyp/blob/main/macOS_Catalina.md#the-acid-test) fails every time because https://github.com/nodejs/node-gyp/raw/master/macOS_Catalina_acid_test.sh does not exist (404). The command should be:
curl -sL https://github.com/raw/nodejs/node-gyp/main/macOS_Catalina_acid_test.sh | bash