[Bug] Can't install dependencies from git containing incompatible devDependencies
See original GitHub issue- I’d be willing to implement a fix
Describe the bug
yarn install
fails on trying to install dependencies from git repositories in the pack step, seemingly related to when they contain ~optional modules~ devDependencies (edited) such as node-sass
that fail to build (for whatever reason), after which yarn exits. This wasn’t a problem with yarn v1.
Error: Packing the package failed
To Reproduce
Sample package.json
:
{
"dependencies": {
"react-tether": "https://github.com/marvelapp/react-tether.git"
}
}
Yarn v1 (success):
> yarn
yarn install v1.22.4
warning package.json: No license field
info No lockfile found.
warning No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > react-tether@0.6.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning " > react-tether@0.6.0" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
✨ Done in 4.18s.
Yarn v2 (fail):
> yarn
➤ YN0000: ┌ Resolution step
➤ YN0013: │ react-tether@https://github.com/marvelapp/react-tether.git#commit=b076c38b5c6bf752076109ab0d85876f80133f7b can't be found in the cache and will be fetched from GitHub
➤ YN0013: │ react-tether@https://github.com/marvelapp/react-tether.git#commit=b076c38b5c6bf752076109ab0d85876f80133f7b can't be found in the cache and will be fetched from the remote repository
➤ YN0058: │ react-tether@https://github.com/marvelapp/react-tether.git#commit=b076c38b5c6bf752076109ab0d85876f80133f7b: Packing the package failed (exit code 1, logs can be found here: /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-003e7fc2/pack.log)
➤ YN0000: └ Completed in 22s 832ms
➤ YN0000: Failed with errors in 22s 836ms
react-tether's pack.log
Installing the project using Yarn Classic
➤ YN0000: Downloading https://nightly.yarnpkg.com/latest.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-1.23.0-20200928.1349.cjs
➤ YN0000: Done in 0s 571ms
yarn install v1.23.0-20200928.1349
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > react-motion-ui-pack@0.10.3" has incorrect peer dependency "react@0.14.x || ^15.0.0".
warning " > react-motion-ui-pack@0.10.3" has incorrect peer dependency "react-dom@0.14.x || ^15.0.0".
[4/4] Building fresh packages...
error /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass
Output:
Building: /usr/local/bin/node /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/usr/local/bin/node',
gyp verb cli '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.4.0
gyp info using node@14.12.0 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.16\n"
gyp verb get node dir no --target version specified, falling back to host node version: 14.12.0
gyp verb command install [ '14.12.0' ]
gyp verb install input version string "14.12.0"
gyp verb install installing version: 14.12.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 14.12.0
gyp verb build dir attempting to create "build" dir: /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python2
gyp info spawn args [
gyp info spawn args '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/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 '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/batman/.node-gyp/14.12.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/batman/.node-gyp/14.12.0',
gyp info spawn args '-Dnode_gyp_dir=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass',
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 ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/gyp_main.py", line 16, in <module>
sys.exit(gyp.script_main())
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 545, in script_main
return main(sys.argv[1:])
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 538, in main
return gyp_main(args)
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 2170, in GenerateOutput
part_of_all=qualified_target in needed_targets)
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 795, in Write
self.Pchify))
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 1190, in WriteSources
cflags = self.xcode_settings.GetCflags(configname)
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 551, in GetCflags
archs = self.GetActiveArchs(self.configname)
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 420, in GetActiveArchs
xcode_archs_default = GetXcodeArchsDefault()
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 118, in GetXcodeArchsDefault
xcode_version, _ = XcodeVersion()
File "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1265, in XcodeVersion
version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/bin/node" "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-sass
gyp ERR! node -v v14.12.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Build failed with error code: 1
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
warning Error running install script for optional dependency: "/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@14.12.0 | darwin | x64
node-pre-gyp info check checked for \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node\" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v83-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v83-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v83-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@14.12.0 (node-v83 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v83-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v83-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@14.12.0 (node-v83 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@14.12.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@14.12.0 | darwin | x64
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@14.12.0 | darwin | x64
gyp info using node-gyp@3.4.0
gyp info using node@14.12.0 | darwin | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [
gyp info spawn args '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/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 '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/batman/.node-gyp/14.12.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/batman/.node-gyp/14.12.0',
gyp info spawn args '-Dnode_gyp_dir=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents',
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 ]
gyp info spawn /usr/bin/python2
gyp info spawn args [
gyp info spawn args '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/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 '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/batman/.node-gyp/14.12.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/batman/.node-gyp/14.12.0',
gyp info spawn args '-Dnode_gyp_dir=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents',
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 ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/gyp_main.py\", line 16, in <module>
Traceback (most recent call last):
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/gyp_main.py\", line 16, in <module>
sys.exit(gyp.script_main())
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 545, in script_main
sys.exit(gyp.script_main())
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 545, in script_main
return main(sys.argv[1:])
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 538, in main
return main(sys.argv[1:])
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 538, in main
return gyp_main(args)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 523, in gyp_main
return gyp_main(args)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 2170, in GenerateOutput
generator.GenerateOutput(flat_list, targets, data, params)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 2170, in GenerateOutput
part_of_all=qualified_target in needed_targets)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 795, in Write
part_of_all=qualified_target in needed_targets)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 795, in Write
self.Pchify))
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 1190, in WriteSources
self.Pchify))
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py\", line 1190, in WriteSources
cflags = self.xcode_settings.GetCflags(configname)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 551, in GetCflags
cflags = self.xcode_settings.GetCflags(configname)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 551, in GetCflags
archs = self.GetActiveArchs(self.configname)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 420, in GetActiveArchs
archs = self.GetActiveArchs(self.configname)
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 420, in GetActiveArchs
xcode_archs_default = GetXcodeArchsDefault()
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 118, in GetXcodeArchsDefault
xcode_archs_default = GetXcodeArchsDefault()
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 118, in GetXcodeArchsDefault
xcode_version, _ = XcodeVersion()
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 1265, in XcodeVersion
xcode_version, _ = XcodeVersion()
File \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py\", line 1265, in XcodeVersion
version = re.match(r'(\\d\\.\\d\\.?\\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
version = re.match(r'(\\d\\.\\d\\.?\\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
gyp gypERR! configure error
ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gypgyp ERR!ERR! stackstack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command \"/usr/local/bin/node\" \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64\"
gyp ERR!gyp SystemERR! Darwin 19.6.0
cwd /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents
gypgyp ERR!ERR! commandnode -v \"/usr/local/bin/node\" \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64\"
v14.12.0
gypgyp ERR!ERR! node-gyp -vcwd v3.4.0
/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents
gyp ERR!gyp not okERR!
node -v v14.12.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node --module_name=fse --module_path=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1047:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Darwin 19.6.0
node-pre-gyp ERR! command \"/usr/local/bin/node\" \"/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents
node-pre-gyp ERR! node -v v14.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node --module_name=fse --module_path=/private/var/folders/d_/j4z429zn06g6fnvmxrh3xhy00000gn/T/xfs-2bf5a256/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64' (1)"
info This module is OPTIONAL, you can safely ignore this error
Sherlock complains about something else: Cannot find module 'pnpapi'
, but fails nonetheless.
Reproduction
const installPromise = packageJsonAndInstall({
dependencies: {
[`react-tether`]: `https://github.com/marvelapp/react-tether.git`,
},
});
await expect(installPromise)
.resolves.toBeTruthy();
Environment if relevant (please complete the following information):
- OS: macOS Catalina 10.15.7
- Node version: 14.12.0
- Yarn version: 2.3.0
Additional context
I first commented in this closed issue: https://github.com/yarnpkg/berry/issues/604#issuecomment-698465129
Opened a new issue because the problem seems related but not the same.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (3 by maintainers)
Makes sense, thanks for the explanation. I get the need for it, it’s just that most forks aren’t there yet.
How do you feel about being able to manually opt-out certain dependencies from running their build pipelines, or to ignore the packing exit code completely? The packing errors that are occurring now basically just need to be ignored, they’re not useful in this case, and they are blocking the entire project from installing its dependencies.
Hi, @arcanis , Here is my issue #5093 with a reproduction. Thank you.