Closed ys-chung closed 3 months ago
The SHARP_FORCE_GLOBAL_LIBVIPS
is an advanced feature that most people will not need and is currently impacted by a bug that https://github.com/lovell/sharp/pull/4111 will fix as part of the next release, so please don't use it for now.
The output you provided of running npm install --verbose --foreground-scripts sharp
contains the following, which may help you:
sharp: Detected globally-installed libvips v8.15.2 sharp: Attempting to build from source via node-gyp sharp: Please add node-addon-api to your dependencies
Please ensure you've added all of the additional dependencies required for building from source as detailed at https://sharp.pixelplumbing.com/install#building-from-source
Hi, thanks for the reply. The output of the "complete error message" section is the one where I've installed node-addon-api
and node-gyp
before, following the requirements, but it still doesn't work.
npm error sharp: Detected SHARP_FORCE_GLOBAL_LIBVIPS, skipping search for globally-installed libvips npm error sharp: Detected globally-installed libvips v8.15.2 npm error sharp: Attempting to build from source via node-gyp npm error sharp: Found node-addon-api 8.1.0 npm error sharp: Found node-gyp version 10.2.0
For thenpm install --verbose --foreground-scripts sharp
section I just followed the issue template's instruction to run it in an empty directory. I understood additional dependencies are needed for global libvips.
Please can you provide the output of npm install --verbose --foreground-scripts node-gyp node-addon-api sharp
without setting the SHARP_FORCE_GLOBAL_LIBVIPS
environment variable.
It would seem like without the env it worked π thank you
So if I want to set the env, I would need to wait for the next release where the change that fixes it comes out, understood.
user@users-Virtual-Machine sharp-test-new % npm install --verbose --foreground-scripts node-gyp node-addon-api sharp
npm verbose cli /opt/homebrew/Cellar/node/22.5.1/bin/node /opt/homebrew/bin/npm
npm info using npm@10.8.2
npm info using node@v22.5.1
npm verbose title npm install node-gyp node-addon-api sharp
npm verbose argv "install" "--loglevel" "verbose" "--foreground-scripts" "node-gyp" "node-addon-api" "sharp"
npm verbose logfile logs-max:10 dir:/Users/user/.npm/_logs/2024-08-10T12_46_16_046Z-
npm verbose logfile /Users/user/.npm/_logs/2024-08-10T12_46_16_046Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/node-gyp 491ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 120ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/sharp 90ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/exponential-backoff 87ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/nopt 83ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/proc-log 81ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/graceful-fs 331ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/make-fetch-happen 335ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/env-paths 344ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/semver 91ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/glob 369ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color 81ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/tar 112ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/which 125ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc 152ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-darwin-x64 152ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-darwin-x64 204ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-darwin-arm64 509ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-arm 445ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linuxmusl-arm64 458ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-darwin-arm64 972ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-arm64 1060ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-arm64 403ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-s390x 1409ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-x64 1583ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-s390x 422ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-arm 1075ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-x64 457ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linuxmusl-arm64 446ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-wasm32 462ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linuxmusl-x64 1573ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-win32-ia32 468ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-win32-x64 447ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linuxmusl-x64 1439ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/foreground-child 82ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/jackspeak 84ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/minimatch 87ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/path-scurry 91ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/minipass 111ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/minipass 81ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/cacache 85ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/package-json-from-dist 102ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/is-lambda 82ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ssri 161ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/negotiator 87ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/minipass-fetch 78ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/promise-retry 89ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/minipass-flush 100ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/abbrev 75ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/minipass-pipeline 103ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/chownr 80ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp 80ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/fs-minipass 75ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@npmcli%2fagent 349ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/yallist 172ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/minizlib 142ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/isexe 77ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/http-cache-semantics 664ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/cross-spawn 78ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/brace-expansion 80ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@pkgjs%2fparseargs 99ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/signal-exit 108ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@isaacs%2fcliui 109ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/lru-cache 110ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/path-key 103ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/shebang-command 157ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/shebang-regex 107ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/string-width 87ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/wrap-ansi 89ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/string-width 90ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/wrap-ansi 5ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 118ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 156ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/eastasianwidth 83ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 83ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/emoji-regex 86ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/emoji-regex 86ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point 89ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 7ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ansi-styles 106ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ansi-styles 299ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/https-proxy-agent 84ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/agent-base 86ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/http-proxy-agent 87ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/p-map 103ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/minipass-collect 79ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/minipass-sized 80ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@npmcli%2ffs 105ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/unique-filename 154ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/encoding 76ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/err-code 77ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/retry 75ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/socks-proxy-agent 777ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/socks 83ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/debug 104ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/debug 107ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/debug 109ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/debug 112ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ms 105ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/aggregate-error 79ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/unique-slug 101ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/balanced-match 115ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/iconv-lite 84ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/safer-buffer 104ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/clean-stack 87ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/indent-string 158ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 83ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-string 83ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@emnapi%2fruntime 400ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/tslib 80ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-name 81ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-name 81ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 82ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 79ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ip-address 78ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/smart-buffer 89ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/sprintf-js 77ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/jsbn 80ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/imurmurhash 82ms (cache revalidated)
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-win32-x64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-win32-ia32
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-wasm32
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@emnapi/runtime
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/tslib
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-linuxmusl-x64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-linuxmusl-arm64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-linux-x64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-linux-s390x
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-linux-arm64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-linux-arm
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-libvips-linuxmusl-x64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-libvips-linuxmusl-arm64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-libvips-linux-x64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-libvips-linux-s390x
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-libvips-linux-arm64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-libvips-linux-arm
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-libvips-darwin-x64
npm verbose reify failed optional dependency /Users/user/sharp-test-new/node_modules/@img/sharp-darwin-x64
npm info run sharp@0.33.4 install node_modules/sharp node install/check
> sharp@0.33.4 install
> node install/check
sharp: Detected globally-installed libvips v8.15.2
sharp: Attempting to build from source via node-gyp
sharp: Found node-addon-api 8.1.0
sharp: Found node-gyp version 10.2.0
sharp: See https://sharp.pixelplumbing.com/install#building-from-source
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/opt/homebrew/Cellar/node/22.5.1/bin/node',
gyp verb cli '/Users/user/sharp-test-new/node_modules/.bin/node-gyp',
gyp verb cli 'rebuild',
gyp verb cli '--directory=src'
gyp verb cli ]
gyp info using node-gyp@10.2.0
gyp info using node@22.5.1 | darwin | arm64
gyp info chdir src
gyp verb clean removing "build" directory
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if "python3" can be used
gyp verb find Python - executing "python3" to get executable path
gyp verb find Python - executable path is "/opt/homebrew/opt/python@3.12/bin/python3.12"
gyp verb find Python - executing "/opt/homebrew/opt/python@3.12/bin/python3.12" to get version
gyp verb find Python - version is "3.12.4"
gyp info find Python using Python version 3.12.4 found at "/opt/homebrew/opt/python@3.12/bin/python3.12"
gyp verb get node dir no --target version specified, falling back to host node version: 22.5.1
gyp verb install input version string "22.5.1"
gyp verb install installing version: 22.5.1
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" 11
gyp verb needs "installVersion" 11
gyp verb install version is good
gyp verb get node dir target node version installed: 22.5.1
gyp verb build dir attempting to create "build" dir: /Users/user/sharp-test-new/node_modules/sharp/src/build
gyp verb build dir "build" dir needed to be created? Yes
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/user/sharp-test-new/node_modules/sharp/src/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/user/sharp-test-new/node_modules/sharp/src/config.gypi
gyp verb common.gypi checking for gypi file: /Users/user/sharp-test-new/node_modules/sharp/src/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /opt/homebrew/opt/python@3.12/bin/python3.12
gyp info spawn args [
gyp info spawn args '/Users/user/sharp-test-new/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/user/sharp-test-new/node_modules/sharp/src/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/user/sharp-test-new/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/user/Library/Caches/node-gyp/22.5.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/user/Library/Caches/node-gyp/22.5.1',
gyp info spawn args '-Dnode_gyp_dir=/Users/user/sharp-test-new/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/user/Library/Caches/node-gyp/22.5.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/user/sharp-test-new/node_modules/sharp/src',
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 ]
<string>:114: SyntaxWarning: invalid escape sequence '\/'
gyp verb build type Release
gyp verb architecture arm64
gyp verb node dev dir /Users/user/Library/Caches/node-gyp/22.5.1
gyp verb python /opt/homebrew/opt/python@3.12/bin/python3.12
gyp verb `which` succeeded for `make` /usr/bin/make
gyp verb bin symlinks created symlink to "/opt/homebrew/opt/python@3.12/bin/python3.12" in "/Users/user/sharp-test-new/node_modules/sharp/src/build/node_gyp_bins" and added to PATH
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
cc -o Release/obj.target/nothing/../../node-addon-api/nothing.o ../../../node-addon-api/nothing.c '-DNODE_GYP_MODULE_NAME=nothing' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/Users/user/Library/Caches/node-gyp/22.5.1/include/node -I/Users/user/Library/Caches/node-gyp/22.5.1/src -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/config -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/openssl/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/uv/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/zlib -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/v8/include -O3 -gdwarf-2 -flto -mmacosx-version-min=11.0 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/nothing/../../node-addon-api/nothing.o.d.raw -c
rm -f Release/nothing.a && ./gyp-mac-tool filter-libtool libtool -static -o Release/nothing.a Release/obj.target/nothing/../../node-addon-api/nothing.o
warning: /Library/Developer/CommandLineTools/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
touch Release/obj.target/libvips-cpp.stamp
c++ -o Release/obj.target/sharp-darwin-arm64/common.o ../common.cc '-DNODE_GYP_MODULE_NAME=sharp-darwin-arm64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DNAPI_VERSION=9' '-DNODE_ADDON_API_DISABLE_DEPRECATED' '-DNODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' '-DSHARP_USE_GLOBAL_LIBVIPS' '-DBUILDING_NODE_EXTENSION' -I/Users/user/Library/Caches/node-gyp/22.5.1/include/node -I/Users/user/Library/Caches/node-gyp/22.5.1/src -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/config -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/openssl/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/uv/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/zlib -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/v8/include -I../../../node-addon-api -I/opt/homebrew/Cellar/libarchive/3.7.4/include -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/ffi -I/opt/homebrew/Cellar/vips/8.15.2_1/include -I/opt/homebrew/Cellar/fftw/3.3.10_1/include -I/opt/homebrew/Cellar/cfitsio/4.4.1/include -I/opt/homebrew/Cellar/libimagequant/4.3.3/include -I/opt/homebrew/Cellar/cgif/0.4.1/include -I/opt/homebrew/Cellar/libexif/0.6.24/include -I/opt/homebrew/Cellar/libspng/0.7.4/include -I/opt/homebrew/Cellar/webp/1.4.0/include -I/opt/homebrew/Cellar/webp/1.4.0/include/webp -I/opt/homebrew/Cellar/pango/1.54.0/include/pango-1.0 -I/opt/homebrew/Cellar/harfbuzz/9.0.0/include/harfbuzz -I/opt/homebrew/Cellar/fribidi/1.0.15/include/fribidi -I/opt/homebrew/Cellar/graphite2/1.3.14/include -I/opt/homebrew/Cellar/librsvg/2.58.2/include/librsvg-2.0 -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.12/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.2/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.3/include -I/opt/homebrew/Cellar/cairo/1.18.0/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.42.2/include/pixman-1 -I/opt/homebrew/Cellar/libmatio/1.5.27/include -I/opt/homebrew/opt/hdf5/include -I/opt/homebrew/Cellar/little-cms2/2.16/include -I/opt/homebrew/Cellar/openexr/3.2.4/include -I/opt/homebrew/Cellar/openexr/3.2.4/include/OpenEXR -I/opt/homebrew/Cellar/imath/3.1.11/include -I/opt/homebrew/Cellar/imath/3.1.11/include/Imath -I/opt/homebrew/Cellar/openjpeg/2.5.2/include/openjpeg-2.5 -I/opt/homebrew/Cellar/highway/1.2.0/include -I/opt/homebrew/Cellar/glib/2.80.4/include -I/opt/homebrew/Cellar/glib/2.80.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -O3 -gdwarf-2 -flto -mmacosx-version-min=10.13 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fexceptions -Wall -Oz -MMD -MF ./Release/.deps/Release/obj.target/sharp-darwin-arm64/common.o.d.raw -c
c++ -o Release/obj.target/sharp-darwin-arm64/metadata.o ../metadata.cc '-DNODE_GYP_MODULE_NAME=sharp-darwin-arm64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DNAPI_VERSION=9' '-DNODE_ADDON_API_DISABLE_DEPRECATED' '-DNODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' '-DSHARP_USE_GLOBAL_LIBVIPS' '-DBUILDING_NODE_EXTENSION' -I/Users/user/Library/Caches/node-gyp/22.5.1/include/node -I/Users/user/Library/Caches/node-gyp/22.5.1/src -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/config -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/openssl/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/uv/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/zlib -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/v8/include -I../../../node-addon-api -I/opt/homebrew/Cellar/libarchive/3.7.4/include -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/ffi -I/opt/homebrew/Cellar/vips/8.15.2_1/include -I/opt/homebrew/Cellar/fftw/3.3.10_1/include -I/opt/homebrew/Cellar/cfitsio/4.4.1/include -I/opt/homebrew/Cellar/libimagequant/4.3.3/include -I/opt/homebrew/Cellar/cgif/0.4.1/include -I/opt/homebrew/Cellar/libexif/0.6.24/include -I/opt/homebrew/Cellar/libspng/0.7.4/include -I/opt/homebrew/Cellar/webp/1.4.0/include -I/opt/homebrew/Cellar/webp/1.4.0/include/webp -I/opt/homebrew/Cellar/pango/1.54.0/include/pango-1.0 -I/opt/homebrew/Cellar/harfbuzz/9.0.0/include/harfbuzz -I/opt/homebrew/Cellar/fribidi/1.0.15/include/fribidi -I/opt/homebrew/Cellar/graphite2/1.3.14/include -I/opt/homebrew/Cellar/librsvg/2.58.2/include/librsvg-2.0 -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.12/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.2/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.3/include -I/opt/homebrew/Cellar/cairo/1.18.0/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.42.2/include/pixman-1 -I/opt/homebrew/Cellar/libmatio/1.5.27/include -I/opt/homebrew/opt/hdf5/include -I/opt/homebrew/Cellar/little-cms2/2.16/include -I/opt/homebrew/Cellar/openexr/3.2.4/include -I/opt/homebrew/Cellar/openexr/3.2.4/include/OpenEXR -I/opt/homebrew/Cellar/imath/3.1.11/include -I/opt/homebrew/Cellar/imath/3.1.11/include/Imath -I/opt/homebrew/Cellar/openjpeg/2.5.2/include/openjpeg-2.5 -I/opt/homebrew/Cellar/highway/1.2.0/include -I/opt/homebrew/Cellar/glib/2.80.4/include -I/opt/homebrew/Cellar/glib/2.80.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -O3 -gdwarf-2 -flto -mmacosx-version-min=10.13 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fexceptions -Wall -Oz -MMD -MF ./Release/.deps/Release/obj.target/sharp-darwin-arm64/metadata.o.d.raw -c
c++ -o Release/obj.target/sharp-darwin-arm64/stats.o ../stats.cc '-DNODE_GYP_MODULE_NAME=sharp-darwin-arm64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DNAPI_VERSION=9' '-DNODE_ADDON_API_DISABLE_DEPRECATED' '-DNODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' '-DSHARP_USE_GLOBAL_LIBVIPS' '-DBUILDING_NODE_EXTENSION' -I/Users/user/Library/Caches/node-gyp/22.5.1/include/node -I/Users/user/Library/Caches/node-gyp/22.5.1/src -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/config -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/openssl/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/uv/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/zlib -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/v8/include -I../../../node-addon-api -I/opt/homebrew/Cellar/libarchive/3.7.4/include -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/ffi -I/opt/homebrew/Cellar/vips/8.15.2_1/include -I/opt/homebrew/Cellar/fftw/3.3.10_1/include -I/opt/homebrew/Cellar/cfitsio/4.4.1/include -I/opt/homebrew/Cellar/libimagequant/4.3.3/include -I/opt/homebrew/Cellar/cgif/0.4.1/include -I/opt/homebrew/Cellar/libexif/0.6.24/include -I/opt/homebrew/Cellar/libspng/0.7.4/include -I/opt/homebrew/Cellar/webp/1.4.0/include -I/opt/homebrew/Cellar/webp/1.4.0/include/webp -I/opt/homebrew/Cellar/pango/1.54.0/include/pango-1.0 -I/opt/homebrew/Cellar/harfbuzz/9.0.0/include/harfbuzz -I/opt/homebrew/Cellar/fribidi/1.0.15/include/fribidi -I/opt/homebrew/Cellar/graphite2/1.3.14/include -I/opt/homebrew/Cellar/librsvg/2.58.2/include/librsvg-2.0 -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.12/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.2/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.3/include -I/opt/homebrew/Cellar/cairo/1.18.0/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.42.2/include/pixman-1 -I/opt/homebrew/Cellar/libmatio/1.5.27/include -I/opt/homebrew/opt/hdf5/include -I/opt/homebrew/Cellar/little-cms2/2.16/include -I/opt/homebrew/Cellar/openexr/3.2.4/include -I/opt/homebrew/Cellar/openexr/3.2.4/include/OpenEXR -I/opt/homebrew/Cellar/imath/3.1.11/include -I/opt/homebrew/Cellar/imath/3.1.11/include/Imath -I/opt/homebrew/Cellar/openjpeg/2.5.2/include/openjpeg-2.5 -I/opt/homebrew/Cellar/highway/1.2.0/include -I/opt/homebrew/Cellar/glib/2.80.4/include -I/opt/homebrew/Cellar/glib/2.80.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -O3 -gdwarf-2 -flto -mmacosx-version-min=10.13 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fexceptions -Wall -Oz -MMD -MF ./Release/.deps/Release/obj.target/sharp-darwin-arm64/stats.o.d.raw -c
c++ -o Release/obj.target/sharp-darwin-arm64/operations.o ../operations.cc '-DNODE_GYP_MODULE_NAME=sharp-darwin-arm64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DNAPI_VERSION=9' '-DNODE_ADDON_API_DISABLE_DEPRECATED' '-DNODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' '-DSHARP_USE_GLOBAL_LIBVIPS' '-DBUILDING_NODE_EXTENSION' -I/Users/user/Library/Caches/node-gyp/22.5.1/include/node -I/Users/user/Library/Caches/node-gyp/22.5.1/src -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/config -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/openssl/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/uv/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/zlib -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/v8/include -I../../../node-addon-api -I/opt/homebrew/Cellar/libarchive/3.7.4/include -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/ffi -I/opt/homebrew/Cellar/vips/8.15.2_1/include -I/opt/homebrew/Cellar/fftw/3.3.10_1/include -I/opt/homebrew/Cellar/cfitsio/4.4.1/include -I/opt/homebrew/Cellar/libimagequant/4.3.3/include -I/opt/homebrew/Cellar/cgif/0.4.1/include -I/opt/homebrew/Cellar/libexif/0.6.24/include -I/opt/homebrew/Cellar/libspng/0.7.4/include -I/opt/homebrew/Cellar/webp/1.4.0/include -I/opt/homebrew/Cellar/webp/1.4.0/include/webp -I/opt/homebrew/Cellar/pango/1.54.0/include/pango-1.0 -I/opt/homebrew/Cellar/harfbuzz/9.0.0/include/harfbuzz -I/opt/homebrew/Cellar/fribidi/1.0.15/include/fribidi -I/opt/homebrew/Cellar/graphite2/1.3.14/include -I/opt/homebrew/Cellar/librsvg/2.58.2/include/librsvg-2.0 -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.12/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.2/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.3/include -I/opt/homebrew/Cellar/cairo/1.18.0/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.42.2/include/pixman-1 -I/opt/homebrew/Cellar/libmatio/1.5.27/include -I/opt/homebrew/opt/hdf5/include -I/opt/homebrew/Cellar/little-cms2/2.16/include -I/opt/homebrew/Cellar/openexr/3.2.4/include -I/opt/homebrew/Cellar/openexr/3.2.4/include/OpenEXR -I/opt/homebrew/Cellar/imath/3.1.11/include -I/opt/homebrew/Cellar/imath/3.1.11/include/Imath -I/opt/homebrew/Cellar/openjpeg/2.5.2/include/openjpeg-2.5 -I/opt/homebrew/Cellar/highway/1.2.0/include -I/opt/homebrew/Cellar/glib/2.80.4/include -I/opt/homebrew/Cellar/glib/2.80.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -O3 -gdwarf-2 -flto -mmacosx-version-min=10.13 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fexceptions -Wall -Oz -MMD -MF ./Release/.deps/Release/obj.target/sharp-darwin-arm64/operations.o.d.raw -c
c++ -o Release/obj.target/sharp-darwin-arm64/pipeline.o ../pipeline.cc '-DNODE_GYP_MODULE_NAME=sharp-darwin-arm64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DNAPI_VERSION=9' '-DNODE_ADDON_API_DISABLE_DEPRECATED' '-DNODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' '-DSHARP_USE_GLOBAL_LIBVIPS' '-DBUILDING_NODE_EXTENSION' -I/Users/user/Library/Caches/node-gyp/22.5.1/include/node -I/Users/user/Library/Caches/node-gyp/22.5.1/src -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/config -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/openssl/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/uv/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/zlib -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/v8/include -I../../../node-addon-api -I/opt/homebrew/Cellar/libarchive/3.7.4/include -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/ffi -I/opt/homebrew/Cellar/vips/8.15.2_1/include -I/opt/homebrew/Cellar/fftw/3.3.10_1/include -I/opt/homebrew/Cellar/cfitsio/4.4.1/include -I/opt/homebrew/Cellar/libimagequant/4.3.3/include -I/opt/homebrew/Cellar/cgif/0.4.1/include -I/opt/homebrew/Cellar/libexif/0.6.24/include -I/opt/homebrew/Cellar/libspng/0.7.4/include -I/opt/homebrew/Cellar/webp/1.4.0/include -I/opt/homebrew/Cellar/webp/1.4.0/include/webp -I/opt/homebrew/Cellar/pango/1.54.0/include/pango-1.0 -I/opt/homebrew/Cellar/harfbuzz/9.0.0/include/harfbuzz -I/opt/homebrew/Cellar/fribidi/1.0.15/include/fribidi -I/opt/homebrew/Cellar/graphite2/1.3.14/include -I/opt/homebrew/Cellar/librsvg/2.58.2/include/librsvg-2.0 -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.12/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.2/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.3/include -I/opt/homebrew/Cellar/cairo/1.18.0/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.42.2/include/pixman-1 -I/opt/homebrew/Cellar/libmatio/1.5.27/include -I/opt/homebrew/opt/hdf5/include -I/opt/homebrew/Cellar/little-cms2/2.16/include -I/opt/homebrew/Cellar/openexr/3.2.4/include -I/opt/homebrew/Cellar/openexr/3.2.4/include/OpenEXR -I/opt/homebrew/Cellar/imath/3.1.11/include -I/opt/homebrew/Cellar/imath/3.1.11/include/Imath -I/opt/homebrew/Cellar/openjpeg/2.5.2/include/openjpeg-2.5 -I/opt/homebrew/Cellar/highway/1.2.0/include -I/opt/homebrew/Cellar/glib/2.80.4/include -I/opt/homebrew/Cellar/glib/2.80.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -O3 -gdwarf-2 -flto -mmacosx-version-min=10.13 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fexceptions -Wall -Oz -MMD -MF ./Release/.deps/Release/obj.target/sharp-darwin-arm64/pipeline.o.d.raw -c
c++ -o Release/obj.target/sharp-darwin-arm64/utilities.o ../utilities.cc '-DNODE_GYP_MODULE_NAME=sharp-darwin-arm64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DNAPI_VERSION=9' '-DNODE_ADDON_API_DISABLE_DEPRECATED' '-DNODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' '-DSHARP_USE_GLOBAL_LIBVIPS' '-DBUILDING_NODE_EXTENSION' -I/Users/user/Library/Caches/node-gyp/22.5.1/include/node -I/Users/user/Library/Caches/node-gyp/22.5.1/src -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/config -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/openssl/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/uv/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/zlib -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/v8/include -I../../../node-addon-api -I/opt/homebrew/Cellar/libarchive/3.7.4/include -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/ffi -I/opt/homebrew/Cellar/vips/8.15.2_1/include -I/opt/homebrew/Cellar/fftw/3.3.10_1/include -I/opt/homebrew/Cellar/cfitsio/4.4.1/include -I/opt/homebrew/Cellar/libimagequant/4.3.3/include -I/opt/homebrew/Cellar/cgif/0.4.1/include -I/opt/homebrew/Cellar/libexif/0.6.24/include -I/opt/homebrew/Cellar/libspng/0.7.4/include -I/opt/homebrew/Cellar/webp/1.4.0/include -I/opt/homebrew/Cellar/webp/1.4.0/include/webp -I/opt/homebrew/Cellar/pango/1.54.0/include/pango-1.0 -I/opt/homebrew/Cellar/harfbuzz/9.0.0/include/harfbuzz -I/opt/homebrew/Cellar/fribidi/1.0.15/include/fribidi -I/opt/homebrew/Cellar/graphite2/1.3.14/include -I/opt/homebrew/Cellar/librsvg/2.58.2/include/librsvg-2.0 -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.12/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.2/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.3/include -I/opt/homebrew/Cellar/cairo/1.18.0/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.42.2/include/pixman-1 -I/opt/homebrew/Cellar/libmatio/1.5.27/include -I/opt/homebrew/opt/hdf5/include -I/opt/homebrew/Cellar/little-cms2/2.16/include -I/opt/homebrew/Cellar/openexr/3.2.4/include -I/opt/homebrew/Cellar/openexr/3.2.4/include/OpenEXR -I/opt/homebrew/Cellar/imath/3.1.11/include -I/opt/homebrew/Cellar/imath/3.1.11/include/Imath -I/opt/homebrew/Cellar/openjpeg/2.5.2/include/openjpeg-2.5 -I/opt/homebrew/Cellar/highway/1.2.0/include -I/opt/homebrew/Cellar/glib/2.80.4/include -I/opt/homebrew/Cellar/glib/2.80.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -O3 -gdwarf-2 -flto -mmacosx-version-min=10.13 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fexceptions -Wall -Oz -MMD -MF ./Release/.deps/Release/obj.target/sharp-darwin-arm64/utilities.o.d.raw -c
c++ -o Release/obj.target/sharp-darwin-arm64/sharp.o ../sharp.cc '-DNODE_GYP_MODULE_NAME=sharp-darwin-arm64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DNAPI_VERSION=9' '-DNODE_ADDON_API_DISABLE_DEPRECATED' '-DNODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' '-DSHARP_USE_GLOBAL_LIBVIPS' '-DBUILDING_NODE_EXTENSION' -I/Users/user/Library/Caches/node-gyp/22.5.1/include/node -I/Users/user/Library/Caches/node-gyp/22.5.1/src -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/config -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/openssl/openssl/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/uv/include -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/zlib -I/Users/user/Library/Caches/node-gyp/22.5.1/deps/v8/include -I../../../node-addon-api -I/opt/homebrew/Cellar/libarchive/3.7.4/include -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/ffi -I/opt/homebrew/Cellar/vips/8.15.2_1/include -I/opt/homebrew/Cellar/fftw/3.3.10_1/include -I/opt/homebrew/Cellar/cfitsio/4.4.1/include -I/opt/homebrew/Cellar/libimagequant/4.3.3/include -I/opt/homebrew/Cellar/cgif/0.4.1/include -I/opt/homebrew/Cellar/libexif/0.6.24/include -I/opt/homebrew/Cellar/libspng/0.7.4/include -I/opt/homebrew/Cellar/webp/1.4.0/include -I/opt/homebrew/Cellar/webp/1.4.0/include/webp -I/opt/homebrew/Cellar/pango/1.54.0/include/pango-1.0 -I/opt/homebrew/Cellar/harfbuzz/9.0.0/include/harfbuzz -I/opt/homebrew/Cellar/fribidi/1.0.15/include/fribidi -I/opt/homebrew/Cellar/graphite2/1.3.14/include -I/opt/homebrew/Cellar/librsvg/2.58.2/include/librsvg-2.0 -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.12/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.2/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.3/include -I/opt/homebrew/Cellar/cairo/1.18.0/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.42.2/include/pixman-1 -I/opt/homebrew/Cellar/libmatio/1.5.27/include -I/opt/homebrew/opt/hdf5/include -I/opt/homebrew/Cellar/little-cms2/2.16/include -I/opt/homebrew/Cellar/openexr/3.2.4/include -I/opt/homebrew/Cellar/openexr/3.2.4/include/OpenEXR -I/opt/homebrew/Cellar/imath/3.1.11/include -I/opt/homebrew/Cellar/imath/3.1.11/include/Imath -I/opt/homebrew/Cellar/openjpeg/2.5.2/include/openjpeg-2.5 -I/opt/homebrew/Cellar/highway/1.2.0/include -I/opt/homebrew/Cellar/glib/2.80.4/include -I/opt/homebrew/Cellar/glib/2.80.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -O3 -gdwarf-2 -flto -mmacosx-version-min=10.13 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fexceptions -Wall -Oz -MMD -MF ./Release/.deps/Release/obj.target/sharp-darwin-arm64/sharp.o.d.raw -c
c++ -bundle -undefined dynamic_lookup -Wl,-search_paths_first -mmacosx-version-min=10.13 -arch arm64 -L./Release -stdlib=libc++ -o Release/sharp-darwin-arm64.node Release/obj.target/sharp-darwin-arm64/common.o Release/obj.target/sharp-darwin-arm64/metadata.o Release/obj.target/sharp-darwin-arm64/stats.o Release/obj.target/sharp-darwin-arm64/operations.o Release/obj.target/sharp-darwin-arm64/pipeline.o Release/obj.target/sharp-darwin-arm64/utilities.o Release/obj.target/sharp-darwin-arm64/sharp.o Release/nothing.a -L/opt/homebrew/Cellar/vips/8.15.2_1/lib -L/opt/homebrew/Cellar/glib/2.80.4/lib -L/opt/homebrew/opt/gettext/lib -lvips-cpp -lvips -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
touch Release/obj.target/copy-dll.stamp
gyp info ok
npm info run sharp@0.33.4 install { code: 0, signal: null }
added 110 packages in 25s
17 packages are looking for funding
run `npm fund` for details
npm verbose cwd /Users/user/sharp-test-new
npm verbose os Darwin 23.6.0
npm verbose node v22.5.1
npm verbose npm v10.8.2
npm verbose exit 0
npm info ok
Hello,
On macOS, when installing as a dependency with global libvips, it fails. However, if I clone this repo and run
npm install
thennpm run install
, it builds successfully.I've also tried creating a clean macOS VM, only installing Xcode cli tools, homebrew, vips, node, and then try to install it in a empty directory with the
SHARP_FORCE_GLOBAL_LIBVIPS
environment variable. However, it still fails.I'd appreciate any help, thank you π
Logs when running
npm run install
in this repoPossible install-time or require-time problem
You must confirm both of these before continuing.
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharp
that is not the latest, please open an issue against that package instead.Are you using a supported runtime?
^18.17.0 || ^20.3.0 || >=21.0.0
If you cannot confirm any of these, please upgrade to the latest version and try again before opening an issue.
Are you using a supported package manager and installing optional dependencies?
--include=optional
--no-optional=false
If you cannot confirm any of these, please upgrade to the latest version of your chosen package manager and ensure you are allowing the installation of optional or multi-platform dependencies before opening an issue.
What is the complete error message, including the full stack trace?
What is the complete output of running
npm install --verbose --foreground-scripts sharp
in an empty directory?What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?