我无法再使用yarn 1.22.4添加任何全局包。我在OSX Catalina上,使用NVM,并且安装了最新的XCode 12.1。我收到以下错误。有谁知道是什么原因造成的?
error /Users/Bill/.config/yarn/global/node_modules/sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
Arguments:
Directory: /Users/Bill/.config/yarn/global/node_modules/sharp
Output:
info sharp Detected globally-installed libvips v8.10.2
info sharp Building from source via node-gyp
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@10.22.1 | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [ '/Users/Bill/.nvm/versions/node/v10.22.1/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/Bill/.config/yarn/global/node_modules/sharp/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/Bill/.nvm/versions/node/v10.22.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/Bill/Library/Caches/node-gyp/10.22.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/Bill/Library/Caches/node-gyp/10.22.1',
gyp info spawn args '-Dnode_gyp_dir=/Users/Bill/.nvm/versions/node/v10.22.1/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/Bill/Library/Caches/node-gyp/10.22.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/Bill/.config/yarn/global/node_modules/sharp',
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=.' ]