Skip to content
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

gyp: No Xcode or CLT version detected! #23779

Open
armenzg opened this issue Feb 10, 2021 · 1 comment
Open

gyp: No Xcode or CLT version detected! #23779

armenzg opened this issue Feb 10, 2021 · 1 comment
Labels
Component: Developer Environment This covers issues related to setting up a developer's environment

Comments

@armenzg
Copy link
Member

armenzg commented Feb 10, 2021

I see this gyp: No Xcode or CLT version detected! error once in a while (see bottom of description).
I followed the steps in here

This acid test would fail for me:
curl -sL https://github.com/nodejs/node-gyp/raw/master/macOS_Catalina_acid_test.sh | bash

I followed the steps on the last section and it is now working:

sudo rm -rf $(xcode-select -print-path)
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --reset
xcode-select --install
# Waited for the UI installation to complete
curl -sL https://github.com/nodejs/node-gyp/raw/master/macOS_Catalina_acid_test.sh | bash
Command Line Tools version: 12.4.0.0.1.1610135815
❯ /usr/sbin/pkgutil --pkg-info com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 12.4.0.0.1.1610135815
volume: /
location: /
install-time: 1612991540
groups: com.apple.FindSystemFiles.pkg-group

I've seen this issue in my local machine before. Perhaps we just document it? or add a target like make fix-node-gyp?

warning Error running install script for optional dependency: "/Users/armenzg/code/sentry/node_modules/@visual-snapshot/jest-environment/node_modules/jest-haste-map/node_modules/fsevents, /Users/armenzg/code/sentry/node_modules/jest-environment-jsdom/node_modules/fsevents, /Users/armenzg/code/sentry/node_modules/watchpack-chokidar2/node_modules/fsevents, /Users/armenzg/code/sentry/node_modules/webpack-dev-server/node_modules/fsevents: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /Users/armenzg/code/sentry/node_modules/jest-environment-jsdom/node_modules/fsevents
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 3.6.10 found at \"/Users/armenzg/code/sentry/.venv/bin/python\"
gyp info spawn /Users/armenzg/code/sentry/.venv/bin/python
gyp info spawn args [
gyp info spawn args   '/Users/armenzg/.volta/tools/image/node/12.19.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/armenzg/code/sentry/node_modules/jest-environment-jsdom/node_modules/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/armenzg/.volta/tools/image/node/12.19.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/armenzg/Library/Caches/node-gyp/12.19.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/armenzg/Library/Caches/node-gyp/12.19.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/armenzg/.volta/tools/image/node/12.19.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/armenzg/Library/Caches/node-gyp/12.19.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/armenzg/code/sentry/node_modules/jest-environment-jsdom/node_modules/fsevents',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
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!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/armenzg/.volta/tools/image/node/12.19.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 20.2.0
gyp ERR! command \"/Users/armenzg/.volta/tools/image/node/12.19.0/bin/node\" \"/Users/armenzg/.volta/tools/image/node/12.19.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /Users/armenzg/code/sentry/node_modules/jest-environment-jsdom/node_modules/fsevents
gyp ERR! node -v v12.19.0
✨  Done in 9.77s.
@github-actions
Copy link
Contributor

Sorry, friend. As far as this ol' bot can tell, your issue does not properly use one of this repo's available issue templates. Please try again, if you like. (And if I'm confused, please let us know. 😬)


Did you see the memo about this?

(log)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Developer Environment This covers issues related to setting up a developer's environment
Projects
None yet
Development

No branches or pull requests

1 participant