Skip to content

Installation issue - Xcode related error message #1406

@fnloza

Description

@fnloza

Unable to resolve this install error with better-sqlite3.. consistently getting the error below when I try. anyone have a way around this?

francineloza@Mac iterate % pnpm i Scope: all 10 workspace projects Lockfile is up to date, resolution step is skipped Packages: +132 -1 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- Progress: resolved 132, reused 132, downloaded 0, added 132, done node_modules/.pnpm/[email protected]/node_modules/better-sqlite3: Running install script, failed in 1.1s .../node_modules/better-sqlite3 install$ prebuild-install || node-gyp rebuild --release │ (node:53229) [DEP0176] DeprecationWarning: fs.R_OK is deprecated, use fs.constants.R_OK instead │ (Use node --trace-deprecation ...to show where the warning was created) │ prebuild-install warn install No prebuilt binaries found (target=24.4.1 runtime=node arch=arm64 libc= platform=darwin) │ gyp info it worked if it ends with ok │ gyp info using [email protected] │ gyp info using [email protected] | darwin | arm64 │ gyp info find Python using Python version 3.9.6 found at "/Library/Developer/CommandLineTools/usr/bin/python3" │ gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3 │ gyp info spawn args [ │ gyp info spawn args '/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_ma… │ 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/francineloza/Desktop/repos/iterate/node_modules/.pnpm/[email protected]/node_modules/better-sqli… │ gyp info spawn args '-I', │ gyp info spawn args '/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi… │ gyp info spawn args '-I', │ gyp info spawn args '/Users/francineloza/Library/Caches/node-gyp/24.4.1/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/francineloza/Library/Caches/node-gyp/24.4.1', │ gyp info spawn args '-Dnode_gyp_dir=/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node… │ gyp info spawn args '-Dnode_lib_file=/Users/francineloza/Library/Caches/node-gyp/24.4.1/<(target_arch)/node.lib', │ gyp info spawn args '-Dmodule_root_dir=/Users/francineloza/Desktop/repos/iterate/node_modules/.pnpm/[email protected]/node_m… │ 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 '/'. │ Traceback (most recent call last): │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emu… │ version_list = GetStdoutQuiet(["xcodebuild", "-version"]).splitlines() │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emu… │ raise GypError("Error %d running %s" % (job.returncode, cmdlist[0])) │ gyp.common.GypError: Error 1 running xcodebuild │ During handling of the above exception, another exception occurred: │ Traceback (most recent call last): │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py", line … │ sys.exit(gyp.script_main()) │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.… │ return main(sys.argv[1:]) │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.… │ return gyp_main(args) │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.… │ generator.GenerateOutput(flat_list, targets, data, params) │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator… │ writer.Write( │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator… │ self.WriteActions( │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator… │ env = self.GetSortedXcodeEnv() │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator… │ return gyp.xcode_emulation.GetSortedXcodeEnv( │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emu… │ env = _GetXcodeEnv( │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emu… │ "XCODE_VERSION_ACTUAL": XcodeVersion()[0], │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emu… │ version = CLTVersion() # macOS Catalina returns 11.0.0.0.1.1567737322 │ File "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emu… │ return re.search(regex, output).groupdict()["version"] │ AttributeError: 'NoneType' object has no attribute 'groupdict' │ gyp ERR! configure error │ gyp ERR! stack Error:gyp failed with exit code: 1 │ gyp ERR! stack at ChildProcess.<anonymous> (/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/node_modules/pnpm/dist/node_modu… │ gyp ERR! stack at ChildProcess.emit (node:events:507:28) │ gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) │ gyp ERR! System Darwin 24.1.0 │ gyp ERR! command "/Users/francineloza/.nvm/versions/node/v24.4.1/bin/node" "/Users/francineloza/Library/pnpm/.tools/pnpm/10.17.0/… │ gyp ERR! cwd /Users/francineloza/Desktop/repos/iterate/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3 │ gyp ERR! node -v v24.4.1 │ gyp ERR! node-gyp -v v11.1.0 │ gyp ERR! not ok └─ Failed in 1.1s at /Users/francineloza/Desktop/repos/iterate/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3  ELIFECYCLE  Command failed with exit code 1. francineloza@Mac iterate % pwd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions