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

Installation issue on MacOS behind a proxy #3162

Closed
3 tasks done
ricovitch opened this issue Mar 29, 2022 · 10 comments
Closed
3 tasks done

Installation issue on MacOS behind a proxy #3162

ricovitch opened this issue Mar 29, 2022 · 10 comments

Comments

@ricovitch
Copy link

ricovitch commented Mar 29, 2022

Possible install-time or require-time problem

I'm trying to install sharp on MacOS behind a proxy by downloading sharp and libvips binaries locally and using npm sharp_local_prebuilds environment variable.

I tried with the three following configuration in my .npmrc file with the same result :

sharp_local_prebuilds=/Users/helier_e/Dev/tools/libvips/
sharp_local_prebuilds=/Users/helier_e/Dev/tools/libvips/libvips-8.12.2-darwin-x64.tar.br
sharp_local_prebuilds=/Users/helier_e/Dev/tools/libvips/sharp-v0.30.3-napi-v5-darwin-x64.tar.gz
  • I have read the documentation relating to installation.
  • I have ensured that the architecture and platform of Node.js used for npm install is the same as the architecture and platform of Node.js used at runtime.

Are you using the latest version of sharp?

  • I am using the latest version of sharp as reported by npm view sharp dist-tags.latest.

Is this a problem with filesystem permissions?

If you are using npm v7 or later, does the user running npm install own the directory it is run in? YES

What is the complete output of running npm install --verbose sharp?

npm verb cli [ npm verb cli '/Users/helier_e/.nvm/versions/node/v16.14.0/bin/node', npm verb cli '/Users/helier_e/.nvm/versions/node/v16.14.0/bin/npm', npm verb cli 'install', npm verb cli '--verbose', npm verb cli 'sharp' npm verb cli ] npm info using npm@8.3.1 npm info using node@v16.14.0 npm timing npm:load:whichnode Completed in 0ms npm timing config:load:defaults Completed in 1ms npm timing config:load:file:/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/npmrc Completed in 1ms npm timing config:load:builtin Completed in 1ms npm timing config:load:cli Completed in 2ms npm timing config:load:env Completed in 0ms npm timing config:load:file:/Users/helier_e/Dev/tests/gatsby/sharp-install/.npmrc Completed in 2ms npm timing config:load:project Completed in 3ms npm timing config:load:file:/Users/helier_e/.npmrc Completed in 0ms npm timing config:load:user Completed in 1ms npm timing config:load:file:/Users/helier_e/.nvm/versions/node/v16.14.0/etc/npmrc Completed in 0ms npm timing config:load:global Completed in 0ms npm timing config:load:validate Completed in 1ms npm timing config:load:credentials Completed in 1ms npm timing config:load:setEnvs Completed in 0ms npm timing config:load Completed in 10ms npm timing npm:load:configload Completed in 10ms npm timing npm:load:setTitle Completed in 13ms npm timing config:load:flatten Completed in 2ms npm timing npm:load:display Completed in 5ms npm verb logfile /Users/helier_e/.npm/_logs/2022-03-29T06_35_44_862Z-debug-0.log npm timing npm:load:logFile Completed in 4ms npm timing npm:load:timers Completed in 0ms npm timing npm:load:configScope Completed in 0ms npm timing npm:load Completed in 33ms npm timing arborist:ctor Completed in 0ms npm timing arborist:ctor Completed in 0ms npm timing idealTree:init Completed in 8ms npm timing idealTree:userRequests Completed in 1ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/sharp 252ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/prebuild-install 147ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/tar-fs 175ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/tunnel-agent 189ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/node-addon-api 206ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/detect-libc 211ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/semver 217ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/color 224ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/simple-get 224ms (cache revalidated) npm timing idealTree:#root Completed in 496ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/github-from-package 91ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/color-convert 96ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/pump 95ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/mkdirp-classic 97ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/decompress-response 96ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/npmlog 101ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/lru-cache 103ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/node-abi 107ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/napi-build-utils 163ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/chownr 160ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/tar-stream 172ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/once 182ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/rc 185ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/safe-buffer 192ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/expand-template 205ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/color-string 210ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/minimist 210ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/simple-concat 1201ms (cache revalidated) npm timing idealTree:node_modules/sharp Completed in 1223ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/simple-swizzle 72ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/color-name 74ms (cache revalidated) npm timing idealTree:node_modules/color Completed in 79ms npm timing idealTree:node_modules/color-convert Completed in 2ms npm timing idealTree:node_modules/color-name Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/is-arrayish 84ms (cache revalidated) npm timing idealTree:node_modules/color-string Completed in 87ms npm timing idealTree:node_modules/detect-libc Completed in 0ms npm timing idealTree:node_modules/node-addon-api Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/are-we-there-yet 78ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/console-control-strings 79ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/deep-extend 81ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/end-of-stream 82ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/ini 84ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/gauge 93ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/strip-json-comments 95ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/set-blocking 146ms (cache revalidated) npm timing idealTree:node_modules/prebuild-install Completed in 160ms npm timing idealTree:node_modules/expand-template Completed in 0ms npm timing idealTree:node_modules/github-from-package Completed in 0ms npm timing idealTree:node_modules/minimist Completed in 0ms npm timing idealTree:node_modules/mkdirp-classic Completed in 0ms npm timing idealTree:node_modules/napi-build-utils Completed in 0ms npm timing idealTree:node_modules/node-abi Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/aproba 84ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/wide-align 83ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/delegates 89ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/has-unicode 92ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/signal-exit 91ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/strip-ansi 91ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/string-width 99ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/readable-stream 105ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/object-assign 272ms (cache revalidated) npm timing idealTree:node_modules/npmlog Completed in 280ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/core-util-is 85ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/string_decoder 83ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/isarray 85ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/util-deprecate 84ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/process-nextick-args 89ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/inherits 90ms (cache revalidated) npm timing idealTree:node_modules/are-we-there-yet Completed in 94ms npm timing idealTree:node_modules/console-control-strings Completed in 0ms npm timing idealTree:node_modules/delegates Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/is-fullwidth-code-point 70ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/code-point-at 84ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/ansi-regex 99ms (cache revalidated) npm timing idealTree:node_modules/gauge Completed in 108ms npm timing idealTree:node_modules/aproba Completed in 0ms npm timing idealTree:node_modules/has-unicode Completed in 0ms npm timing idealTree:node_modules/object-assign Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/wrappy 89ms (cache revalidated) npm timing idealTree:node_modules/pump Completed in 94ms npm timing idealTree:node_modules/end-of-stream Completed in 0ms npm timing idealTree:node_modules/once Completed in 1ms npm timing idealTree:node_modules/rc Completed in 4ms npm timing idealTree:node_modules/deep-extend Completed in 0ms npm timing idealTree:node_modules/ini Completed in 0ms npm timing idealTree:node_modules/readable-stream Completed in 6ms npm timing idealTree:node_modules/core-util-is Completed in 0ms npm timing idealTree:node_modules/inherits Completed in 0ms npm timing idealTree:node_modules/isarray Completed in 0ms npm timing idealTree:node_modules/process-nextick-args Completed in 0ms npm timing idealTree:node_modules/safe-buffer Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/yallist 65ms (cache revalidated) npm timing idealTree:node_modules/semver Completed in 68ms npm timing idealTree:node_modules/lru-cache Completed in 2ms npm timing idealTree:node_modules/set-blocking Completed in 0ms npm timing idealTree:node_modules/signal-exit Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/mimic-response 78ms (cache revalidated) npm timing idealTree:node_modules/simple-get Completed in 81ms npm timing idealTree:node_modules/decompress-response Completed in 1ms npm timing idealTree:node_modules/mimic-response Completed in 0ms npm timing idealTree:node_modules/simple-concat Completed in 0ms npm timing idealTree:node_modules/simple-swizzle Completed in 2ms npm timing idealTree:node_modules/is-arrayish Completed in 0ms npm timing idealTree:node_modules/string_decoder Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/number-is-nan 71ms (cache revalidated) npm timing idealTree:node_modules/string-width Completed in 75ms npm timing idealTree:node_modules/code-point-at Completed in 0ms npm timing idealTree:node_modules/is-fullwidth-code-point Completed in 2ms npm timing idealTree:node_modules/number-is-nan Completed in 0ms npm timing idealTree:node_modules/strip-ansi Completed in 2ms npm timing idealTree:node_modules/ansi-regex Completed in 0ms npm timing idealTree:node_modules/strip-json-comments Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/fs-constants 64ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/bl 199ms (cache revalidated) npm timing idealTree:node_modules/tar-fs Completed in 203ms npm timing idealTree:node_modules/chownr Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/buffer 75ms (cache revalidated) npm timing idealTree:node_modules/tar-stream Completed in 82ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/base64-js 78ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/ieee754 78ms (cache revalidated) npm timing idealTree:node_modules/bl Completed in 82ms npm timing idealTree:node_modules/buffer Completed in 1ms npm timing idealTree:node_modules/base64-js Completed in 0ms npm timing idealTree:node_modules/fs-constants Completed in 0ms npm timing idealTree:node_modules/ieee754 Completed in 0ms npm timing idealTree:node_modules/tunnel-agent Completed in 0ms npm timing idealTree:node_modules/util-deprecate Completed in 0ms npm timing idealTree:node_modules/wide-align Completed in 0ms npm timing idealTree:node_modules/wrappy Completed in 0ms npm timing idealTree:node_modules/yallist Completed in 0ms npm timing idealTree:node_modules/bl/node_modules/readable-stream Completed in 0ms npm timing idealTree:node_modules/tar-stream/node_modules/readable-stream Completed in 0ms npm timing idealTree:buildDeps Completed in 3245ms npm timing idealTree:fixDepFlags Completed in 1ms npm timing idealTree Completed in 3259ms npm timing reify:loadTrees Completed in 3259ms npm timing reify:diffTrees Completed in 1ms npm timing reify:retireShallow Completed in 0ms npm timing reify:createSparse Completed in 9ms npm timing reify:loadBundles Completed in 0ms npm http fetch POST 404 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/-/npm/v1/security/advisories/bulk 92ms npm timing reifyNode:node_modules/ansi-regex Completed in 128ms npm timing reifyNode:node_modules/chownr Completed in 129ms npm timing reifyNode:node_modules/number-is-nan Completed in 129ms npm timing reifyNode:node_modules/code-point-at Completed in 129ms npm timing reifyNode:node_modules/is-fullwidth-code-point Completed in 129ms npm timing reifyNode:node_modules/strip-json-comments Completed in 130ms npm timing reifyNode:node_modules/process-nextick-args Completed in 130ms npm timing reifyNode:node_modules/ini Completed in 130ms npm timing reifyNode:node_modules/wrappy Completed in 130ms npm timing reifyNode:node_modules/wide-align Completed in 129ms npm timing reifyNode:node_modules/once Completed in 129ms npm timing reifyNode:node_modules/string-width Completed in 130ms npm timing reifyNode:node_modules/strip-ansi Completed in 130ms npm timing reifyNode:node_modules/end-of-stream Completed in 130ms npm timing reifyNode:node_modules/has-unicode Completed in 130ms npm timing reifyNode:node_modules/object-assign Completed in 130ms npm timing reifyNode:node_modules/aproba Completed in 131ms npm timing reifyNode:node_modules/mkdirp-classic Completed in 132ms npm timing reifyNode:node_modules/color-string Completed in 131ms npm timing reifyNode:node_modules/simple-swizzle Completed in 133ms npm timing reifyNode:node_modules/color-name Completed in 133ms npm timing reifyNode:node_modules/ieee754 Completed in 136ms npm timing reifyNode:node_modules/fs-constants Completed in 136ms npm timing reifyNode:node_modules/decompress-response Completed in 136ms npm timing reifyNode:node_modules/mimic-response Completed in 136ms npm timing reifyNode:node_modules/lru-cache Completed in 136ms npm timing reifyNode:node_modules/inherits Completed in 137ms npm timing reifyNode:node_modules/core-util-is Completed in 137ms npm timing reifyNode:node_modules/signal-exit Completed in 136ms npm timing reifyNode:node_modules/set-blocking Completed in 137ms npm timing reifyNode:node_modules/console-control-strings Completed in 137ms npm timing reifyNode:node_modules/tunnel-agent Completed in 137ms npm timing reifyNode:node_modules/color Completed in 138ms npm timing reifyNode:node_modules/base64-js Completed in 141ms npm timing reifyNode:node_modules/yallist Completed in 140ms npm timing reifyNode:node_modules/util-deprecate Completed in 141ms npm timing reifyNode:node_modules/expand-template Completed in 140ms npm timing reifyNode:node_modules/simple-concat Completed in 142ms npm timing reifyNode:node_modules/deep-extend Completed in 143ms npm timing reifyNode:node_modules/safe-buffer Completed in 143ms npm timing reifyNode:node_modules/string_decoder Completed in 143ms npm timing reifyNode:node_modules/npmlog Completed in 142ms npm timing reifyNode:node_modules/pump Completed in 143ms npm timing reifyNode:node_modules/napi-build-utils Completed in 143ms npm timing reifyNode:node_modules/is-arrayish Completed in 145ms npm timing reifyNode:node_modules/isarray Completed in 145ms npm timing reifyNode:node_modules/delegates Completed in 146ms npm timing reifyNode:node_modules/color-convert Completed in 145ms npm timing reifyNode:node_modules/detect-libc Completed in 146ms npm timing reifyNode:node_modules/are-we-there-yet Completed in 148ms npm timing reifyNode:node_modules/tar-stream Completed in 150ms npm timing reifyNode:node_modules/simple-get Completed in 149ms npm timing reifyNode:node_modules/buffer Completed in 154ms npm http fetch POST 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/-/npm/v1/security/audits/quick 57ms npm timing auditReport:getReport Completed in 159ms npm timing auditReport:init Completed in 0ms npm timing reify:audit Completed in 159ms npm timing reifyNode:node_modules/github-from-package Completed in 155ms npm timing reifyNode:node_modules/rc Completed in 156ms npm timing reifyNode:node_modules/bl Completed in 159ms npm timing reifyNode:node_modules/prebuild-install Completed in 156ms npm timing reifyNode:node_modules/node-abi Completed in 159ms npm timing reifyNode:node_modules/gauge Completed in 163ms npm timing reifyNode:node_modules/minimist Completed in 165ms npm timing reifyNode:node_modules/readable-stream Completed in 171ms npm timing reifyNode:node_modules/tar-stream/node_modules/readable-stream Completed in 174ms npm timing reifyNode:node_modules/bl/node_modules/readable-stream Completed in 175ms npm timing reifyNode:node_modules/tar-fs Completed in 173ms npm timing reifyNode:node_modules/node-addon-api Completed in 174ms npm timing reifyNode:node_modules/semver Completed in 176ms npm timing reifyNode:node_modules/sharp Completed in 179ms npm timing reify:unpack Completed in 182ms npm timing reify:unretire Completed in 1ms npm timing build:queue Completed in 2ms npm timing build:link:node_modules/prebuild-install Completed in 3ms npm timing build:link:node_modules/rc Completed in 2ms npm timing build:link:node_modules/semver Completed in 3ms npm timing build:link Completed in 4ms npm info run sharp@0.30.3 install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) npm info run sharp@0.30.3 install { code: 1, signal: null } npm timing reify:rollback:createSparse Completed in 57ms npm timing reify:rollback:retireShallow Completed in 0ms npm timing command:install Completed in 7021ms npm verb stack Error: command failed npm verb stack at ChildProcess. (/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27) npm verb stack at ChildProcess.emit (node:events:520:28) npm verb stack at maybeClose (node:internal/child_process:1092:16) npm verb stack at Socket. (node:internal/child_process:451:11) npm verb stack at Socket.emit (node:events:520:28) npm verb stack at Pipe. (node:net:687:12) npm verb pkgid sharp@0.30.3 npm verb cwd /Users/helier_e/Dev/tests/gatsby/sharp-install npm verb Darwin 19.6.0 npm verb argv "/Users/helier_e/.nvm/versions/node/v16.14.0/bin/node" "/Users/helier_e/.nvm/versions/node/v16.14.0/bin/npm" "install" "--verbose" "sharp" npm verb node v16.14.0 npm verb npm v8.3.1 npm ERR! code 1 npm ERR! path /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp npm ERR! command failed npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) npm ERR! sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-darwin-x64.tar.br npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm ERR! sharp: Installation error: self signed certificate in certificate chain npm verb exit 1 npm timing npm Completed in 7186ms npm verb unfinished npm timer reify 1648535745024 npm verb unfinished npm timer reify:build 1648535748489 npm verb unfinished npm timer build 1648535748489 npm verb unfinished npm timer build:deps 1648535748489 npm verb unfinished npm timer build:run:install 1648535748495 npm verb unfinished npm timer build:run:install:node_modules/sharp 1648535748495 npm verb code 1

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/helier_e/.npm/_logs/2022-03-29T06_35_44_862Z-debug-0.log

What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?

  System:
    OS: macOS 10.15.7
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 14.02 GB / 32.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
    Watchman: 2021.11.15.00 - /usr/local/bin/watchman
@lovell
Copy link
Owner

lovell commented Mar 29, 2022

Hi, as I mentioned in #3154, sharp_local_prebuilds is used to provide the location for prebuilt sharp binaries rather than libvips binaries.

To install the prebuilt sharp binaries from a directory on the local filesystem, set the sharp_local_prebuilds npm config option or the npm_config_sharp_local_prebuilds environment variable.

You mentioned in #3154 (comment) that you had installed libvips via homebrew, but the installation log above does not reflect this. Did you use brew install vips?

@ricovitch ricovitch reopened this Mar 29, 2022
@ricovitch
Copy link
Author

Hi, sorry I tried to restart everything from scratch today following closely the instructions.
Yesterday I tried installing libvips via homebrew, you're right, and here is the result of brew install vips command :

Warning: vips 8.12.1 is already installed and up-to-date.
To reinstall 8.12.1, run:
  brew reinstall vips

Also since I created this ticket I've made some progress and instead of using a local binary I think I achieved to get the binaries through our internal Artifactory instance with this .npmrc configuration

SHARP_BINARY_HOST=https://artifactory.2b82.aws.cloud.airbus.corp/ui/native/github-releases/lovell/sharp/releases/download
SHARP_LIBVIPS_BINARY_HOST=https://artifactory.2b82.aws.cloud.airbus.corp/ui/native/github-releases/lovell/sharp-libvips/releases/download

Now I had an issue with node-gyp and xcode command line tools, that I think I resolved using the instructions here : https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md#Solutions

Finally here is the new npm install --verbose sharp after all these steps

npm verb cli [ npm verb cli '/Users/helier_e/.nvm/versions/node/v16.14.0/bin/node', npm verb cli '/Users/helier_e/.nvm/versions/node/v16.14.0/bin/npm', npm verb cli 'install', npm verb cli 'sharp', npm verb cli '--verbose' npm verb cli ] npm info using npm@8.3.1 npm info using node@v16.14.0 npm timing npm:load:whichnode Completed in 0ms npm timing config:load:defaults Completed in 1ms npm timing config:load:file:/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/npmrc Completed in 0ms npm timing config:load:builtin Completed in 2ms npm timing config:load:cli Completed in 2ms npm timing config:load:env Completed in 0ms npm timing config:load:file:/Users/helier_e/Dev/tests/gatsby/sharp-install/.npmrc Completed in 3ms npm timing config:load:project Completed in 4ms npm timing config:load:file:/Users/helier_e/.npmrc Completed in 0ms npm timing config:load:user Completed in 0ms npm timing config:load:file:/Users/helier_e/.nvm/versions/node/v16.14.0/etc/npmrc Completed in 0ms npm timing config:load:global Completed in 1ms npm timing config:load:validate Completed in 1ms npm timing config:load:credentials Completed in 1ms npm timing config:load:setEnvs Completed in 0ms npm timing config:load Completed in 12ms npm timing npm:load:configload Completed in 12ms npm timing npm:load:setTitle Completed in 13ms npm timing config:load:flatten Completed in 2ms npm timing npm:load:display Completed in 6ms npm verb logfile /Users/helier_e/.npm/_logs/2022-03-29T09_52_51_691Z-debug-0.log npm timing npm:load:logFile Completed in 5ms npm timing npm:load:timers Completed in 0ms npm timing npm:load:configScope Completed in 0ms npm timing npm:load Completed in 36ms npm timing arborist:ctor Completed in 1ms npm timing arborist:ctor Completed in 0ms npm timing idealTree:init Completed in 11ms npm timing idealTree:userRequests Completed in 2ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/sharp 1298ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/detect-libc 129ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/node-addon-api 358ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/tunnel-agent 376ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/color 412ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/simple-get 413ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/tar-fs 414ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/prebuild-install 418ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/semver 513ms (cache revalidated) npm timing idealTree:#root Completed in 1830ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/color-string 127ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/expand-template 127ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/rc 129ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/decompress-response 161ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/lru-cache 163ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/github-from-package 170ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/npmlog 240ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/simple-concat 240ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/pump 247ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/color-convert 288ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/once 284ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/node-abi 302ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/napi-build-utils 329ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/mkdirp-classic 335ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/chownr 515ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/safe-buffer 653ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/minimist 680ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/tar-stream 954ms (cache revalidated) npm timing idealTree:node_modules/sharp Completed in 979ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/simple-swizzle 106ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/color-name 118ms (cache revalidated) npm timing idealTree:node_modules/color Completed in 123ms npm timing idealTree:node_modules/color-convert Completed in 2ms npm timing idealTree:node_modules/color-name Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/is-arrayish 461ms (cache revalidated) npm timing idealTree:node_modules/color-string Completed in 463ms npm timing idealTree:node_modules/detect-libc Completed in 0ms npm timing idealTree:node_modules/node-addon-api Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/are-we-there-yet 107ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/strip-json-comments 122ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/console-control-strings 130ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/gauge 132ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/deep-extend 221ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/set-blocking 250ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/ini 261ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/end-of-stream 456ms (cache revalidated) npm timing idealTree:node_modules/prebuild-install Completed in 469ms npm timing idealTree:node_modules/expand-template Completed in 0ms npm timing idealTree:node_modules/github-from-package Completed in 0ms npm timing idealTree:node_modules/minimist Completed in 0ms npm timing idealTree:node_modules/mkdirp-classic Completed in 0ms npm timing idealTree:node_modules/napi-build-utils Completed in 0ms npm timing idealTree:node_modules/node-abi Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/has-unicode 125ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/delegates 136ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/wide-align 133ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/aproba 233ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/strip-ansi 250ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/string-width 261ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/readable-stream 270ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/object-assign 277ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/signal-exit 488ms (cache revalidated) npm timing idealTree:node_modules/npmlog Completed in 496ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/process-nextick-args 251ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/inherits 261ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/core-util-is 263ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/isarray 269ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/string_decoder 270ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/util-deprecate 272ms (cache revalidated) npm timing idealTree:node_modules/are-we-there-yet Completed in 279ms npm timing idealTree:node_modules/console-control-strings Completed in 0ms npm timing idealTree:node_modules/delegates Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/is-fullwidth-code-point 146ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/code-point-at 148ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/ansi-regex 155ms (cache revalidated) npm timing idealTree:node_modules/gauge Completed in 164ms npm timing idealTree:node_modules/aproba Completed in 0ms npm timing idealTree:node_modules/has-unicode Completed in 0ms npm timing idealTree:node_modules/object-assign Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/wrappy 116ms (cache revalidated) npm timing idealTree:node_modules/pump Completed in 120ms npm timing idealTree:node_modules/end-of-stream Completed in 0ms npm timing idealTree:node_modules/once Completed in 1ms npm timing idealTree:node_modules/rc Completed in 3ms npm timing idealTree:node_modules/deep-extend Completed in 0ms npm timing idealTree:node_modules/ini Completed in 0ms npm timing idealTree:node_modules/readable-stream Completed in 6ms npm timing idealTree:node_modules/core-util-is Completed in 0ms npm timing idealTree:node_modules/inherits Completed in 0ms npm timing idealTree:node_modules/isarray Completed in 0ms npm timing idealTree:node_modules/process-nextick-args Completed in 0ms npm timing idealTree:node_modules/safe-buffer Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/yallist 119ms (cache revalidated) npm timing idealTree:node_modules/semver Completed in 122ms npm timing idealTree:node_modules/lru-cache Completed in 3ms npm timing idealTree:node_modules/set-blocking Completed in 0ms npm timing idealTree:node_modules/signal-exit Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/mimic-response 99ms (cache revalidated) npm timing idealTree:node_modules/simple-get Completed in 102ms npm timing idealTree:node_modules/decompress-response Completed in 1ms npm timing idealTree:node_modules/mimic-response Completed in 0ms npm timing idealTree:node_modules/simple-concat Completed in 0ms npm timing idealTree:node_modules/simple-swizzle Completed in 1ms npm timing idealTree:node_modules/is-arrayish Completed in 0ms npm timing idealTree:node_modules/string_decoder Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/number-is-nan 116ms (cache revalidated) npm timing idealTree:node_modules/string-width Completed in 120ms npm timing idealTree:node_modules/code-point-at Completed in 0ms npm timing idealTree:node_modules/is-fullwidth-code-point Completed in 2ms npm timing idealTree:node_modules/number-is-nan Completed in 0ms npm timing idealTree:node_modules/strip-ansi Completed in 2ms npm timing idealTree:node_modules/ansi-regex Completed in 0ms npm timing idealTree:node_modules/strip-json-comments Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/bl 101ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/fs-constants 218ms (cache revalidated) npm timing idealTree:node_modules/tar-fs Completed in 223ms npm timing idealTree:node_modules/chownr Completed in 0ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/buffer 133ms (cache revalidated) npm timing idealTree:node_modules/tar-stream Completed in 141ms npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/ieee754 138ms (cache revalidated) npm http fetch GET 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/base64-js 227ms (cache revalidated) npm timing idealTree:node_modules/bl Completed in 230ms npm timing idealTree:node_modules/buffer Completed in 2ms npm timing idealTree:node_modules/base64-js Completed in 0ms npm timing idealTree:node_modules/fs-constants Completed in 0ms npm timing idealTree:node_modules/ieee754 Completed in 0ms npm timing idealTree:node_modules/tunnel-agent Completed in 0ms npm timing idealTree:node_modules/util-deprecate Completed in 0ms npm timing idealTree:node_modules/wide-align Completed in 0ms npm timing idealTree:node_modules/wrappy Completed in 0ms npm timing idealTree:node_modules/yallist Completed in 0ms npm timing idealTree:node_modules/bl/node_modules/readable-stream Completed in 0ms npm timing idealTree:node_modules/tar-stream/node_modules/readable-stream Completed in 0ms npm timing idealTree:buildDeps Completed in 5892ms npm timing idealTree:fixDepFlags Completed in 1ms npm timing idealTree Completed in 5907ms npm timing reify:loadTrees Completed in 5908ms npm timing reify:diffTrees Completed in 2ms npm timing reify:retireShallow Completed in 1ms npm timing reify:createSparse Completed in 8ms npm timing reify:loadBundles Completed in 0ms npm timing reifyNode:node_modules/number-is-nan Completed in 122ms npm timing reifyNode:node_modules/ansi-regex Completed in 123ms npm timing reifyNode:node_modules/code-point-at Completed in 123ms npm timing reifyNode:node_modules/is-fullwidth-code-point Completed in 123ms npm http fetch POST 404 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/-/npm/v1/security/advisories/bulk 128ms npm timing reifyNode:node_modules/chownr Completed in 140ms npm timing reifyNode:node_modules/process-nextick-args Completed in 140ms npm timing reifyNode:node_modules/strip-json-comments Completed in 140ms npm timing reifyNode:node_modules/ini Completed in 141ms npm timing reifyNode:node_modules/wrappy Completed in 141ms npm timing reifyNode:node_modules/once Completed in 141ms npm timing reifyNode:node_modules/wide-align Completed in 141ms npm timing reifyNode:node_modules/end-of-stream Completed in 141ms npm timing reifyNode:node_modules/object-assign Completed in 141ms npm timing reifyNode:node_modules/strip-ansi Completed in 141ms npm timing reifyNode:node_modules/string-width Completed in 141ms npm timing reifyNode:node_modules/has-unicode Completed in 141ms npm timing reifyNode:node_modules/aproba Completed in 141ms npm timing reifyNode:node_modules/mkdirp-classic Completed in 143ms npm timing reifyNode:node_modules/simple-swizzle Completed in 143ms npm timing reifyNode:node_modules/color-string Completed in 144ms npm timing reifyNode:node_modules/color-name Completed in 144ms npm timing reifyNode:node_modules/ieee754 Completed in 146ms npm timing reifyNode:node_modules/fs-constants Completed in 147ms npm timing reifyNode:node_modules/mimic-response Completed in 147ms npm timing reifyNode:node_modules/decompress-response Completed in 151ms npm timing reifyNode:node_modules/lru-cache Completed in 151ms npm timing reifyNode:node_modules/core-util-is Completed in 152ms npm timing reifyNode:node_modules/inherits Completed in 152ms npm timing reifyNode:node_modules/signal-exit Completed in 151ms npm timing reifyNode:node_modules/set-blocking Completed in 151ms npm timing reifyNode:node_modules/console-control-strings Completed in 152ms npm timing reifyNode:node_modules/tunnel-agent Completed in 153ms npm timing reifyNode:node_modules/color Completed in 152ms npm timing reifyNode:node_modules/base64-js Completed in 156ms npm timing reifyNode:node_modules/util-deprecate Completed in 155ms npm timing reifyNode:node_modules/yallist Completed in 156ms npm timing reifyNode:node_modules/expand-template Completed in 155ms npm timing reifyNode:node_modules/simple-concat Completed in 158ms npm timing reifyNode:node_modules/safe-buffer Completed in 158ms npm timing reifyNode:node_modules/deep-extend Completed in 158ms npm timing reifyNode:node_modules/string_decoder Completed in 159ms npm timing reifyNode:node_modules/npmlog Completed in 158ms npm timing reifyNode:node_modules/pump Completed in 158ms npm timing reifyNode:node_modules/napi-build-utils Completed in 159ms npm timing reifyNode:node_modules/is-arrayish Completed in 161ms npm timing reifyNode:node_modules/isarray Completed in 161ms npm timing reifyNode:node_modules/delegates Completed in 161ms npm timing reifyNode:node_modules/color-convert Completed in 162ms npm timing reifyNode:node_modules/detect-libc Completed in 161ms npm timing reifyNode:node_modules/are-we-there-yet Completed in 163ms npm timing reifyNode:node_modules/tar-stream Completed in 165ms npm timing reifyNode:node_modules/simple-get Completed in 164ms npm timing reifyNode:node_modules/buffer Completed in 167ms npm timing reifyNode:node_modules/github-from-package Completed in 168ms npm timing reifyNode:node_modules/rc Completed in 168ms npm timing reifyNode:node_modules/bl Completed in 171ms npm timing reifyNode:node_modules/prebuild-install Completed in 169ms npm timing reifyNode:node_modules/node-abi Completed in 171ms npm timing reifyNode:node_modules/gauge Completed in 175ms npm timing reifyNode:node_modules/minimist Completed in 177ms npm timing reifyNode:node_modules/readable-stream Completed in 184ms npm timing reifyNode:node_modules/bl/node_modules/readable-stream Completed in 188ms npm timing reifyNode:node_modules/tar-stream/node_modules/readable-stream Completed in 189ms npm timing reifyNode:node_modules/tar-fs Completed in 190ms npm timing reifyNode:node_modules/node-addon-api Completed in 189ms npm timing reifyNode:node_modules/semver Completed in 191ms npm timing reifyNode:node_modules/sharp Completed in 194ms npm timing reify:unpack Completed in 197ms npm timing reify:unretire Completed in 0ms npm timing build:queue Completed in 2ms npm timing build:link:node_modules/prebuild-install Completed in 2ms npm timing build:link:node_modules/rc Completed in 2ms npm timing build:link:node_modules/semver Completed in 2ms npm timing build:link Completed in 2ms npm info run sharp@0.30.3 install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) npm http fetch POST 200 https://artifactory.2b82.aws.cloud.airbus.corp/artifactory/api/npm/r-2b82-horizon-npm-virtual/-/npm/v1/security/audits/quick 749ms npm timing auditReport:getReport Completed in 891ms npm timing auditReport:init Completed in 0ms npm timing reify:audit Completed in 893ms npm info run sharp@0.30.3 install { code: 1, signal: null } npm timing reify:rollback:createSparse Completed in 68ms npm timing reify:rollback:retireShallow Completed in 0ms npm timing command:install Completed in 14039ms npm verb stack Error: command failed npm verb stack at ChildProcess. (/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27) npm verb stack at ChildProcess.emit (node:events:520:28) npm verb stack at maybeClose (node:internal/child_process:1092:16) npm verb stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) npm verb pkgid sharp@0.30.3 npm verb cwd /Users/helier_e/Dev/tests/gatsby/sharp-install npm verb Darwin 19.6.0 npm verb argv "/Users/helier_e/.nvm/versions/node/v16.14.0/bin/node" "/Users/helier_e/.nvm/versions/node/v16.14.0/bin/npm" "install" "sharp" "--verbose" npm verb node v16.14.0 npm verb npm v8.3.1 npm ERR! code 1 npm ERR! path /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp npm ERR! command failed npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) npm ERR! sharp: Using cached /Users/helier_e/.npm/_libvips/libvips-8.12.2-darwin-x64.tar.br npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm ERR! 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' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/include/node -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/src -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/openssl/config -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/openssl/openssl/include -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/uv/include -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/zlib -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/v8/include -O3 -gdwarf-2 -mmacosx-version-min=10.13 -arch x86_64 -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 npm ERR! 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 npm ERR! touch Release/obj.target/libvips-cpp.stamp npm ERR! c++ -o Release/obj.target/sharp-darwin-x64/src/common.o ../src/common.cc '-DNODE_GYP_MODULE_NAME=sharp-darwin-x64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DNAPI_VERSION=5' '-DBUILDING_NODE_EXTENSION' -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/include/node -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/src -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/openssl/config -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/openssl/openssl/include -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/uv/include -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/zlib -I/Users/helier_e/Library/Caches/node-gyp/16.14.0/deps/v8/include -I../../node-addon-api -I../vendor/8.12.2/darwin-x64/include -I../vendor/8.12.2/darwin-x64/include/glib-2.0 -I../vendor/8.12.2/darwin-x64/lib/glib-2.0/include -O3 -gdwarf-2 -mmacosx-version-min=10.9 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fexceptions -Wall -Oz -MMD -MF ./Release/.deps/Release/obj.target/sharp-darwin-x64/src/common.o.d.raw -c npm ERR! sharp: Installation error: Decompression failed npm ERR! gyp info it worked if it ends with ok npm ERR! gyp verb cli [ npm ERR! gyp verb cli '/Users/helier_e/.nvm/versions/node/v16.14.0/bin/node', npm ERR! gyp verb cli '/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js', npm ERR! gyp verb cli 'rebuild' npm ERR! gyp verb cli ] npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.0 | darwin | x64 npm ERR! gyp verb command rebuild [] npm ERR! gyp verb command clean [] npm ERR! gyp verb clean removing "build" directory npm ERR! gyp verb command configure [] npm ERR! gyp verb find Python Python is not set from command line or npm configuration npm ERR! gyp verb find Python Python is not set from environment variable PYTHON npm ERR! gyp verb find Python checking if "python3" can be used npm ERR! gyp verb find Python - executing "python3" to get executable path npm ERR! gyp verb find Python - executable path is "/usr/local/opt/python@3.9/bin/python3.9" npm ERR! gyp verb find Python - executing "/usr/local/opt/python@3.9/bin/python3.9" to get version npm ERR! gyp verb find Python - version is "3.9.9" npm ERR! gyp info find Python using Python version 3.9.9 found at "/usr/local/opt/python@3.9/bin/python3.9" npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 16.14.0 npm ERR! gyp verb command install [ '16.14.0' ] npm ERR! gyp verb install input version string "16.14.0" npm ERR! gyp verb install installing version: 16.14.0 npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed npm ERR! gyp verb install version is already installed, need to check "installVersion" npm ERR! gyp verb got "installVersion" 9 npm ERR! gyp verb needs "installVersion" 9 npm ERR! gyp verb install version is good npm ERR! gyp verb get node dir target node version installed: 16.14.0 npm ERR! gyp verb build dir attempting to create "build" dir: /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/build npm ERR! gyp verb build dir "build" dir needed to be created? Yes npm ERR! gyp verb build/config.gypi creating config file npm ERR! gyp verb build/config.gypi writing out config file: /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/build/config.gypi npm ERR! gyp verb config.gypi checking for gypi file: /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/config.gypi npm ERR! gyp verb common.gypi checking for gypi file: /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/common.gypi npm ERR! gyp verb gyp gyp format was not specified; forcing "make" npm ERR! gyp info spawn /usr/local/opt/python@3.9/bin/python3.9 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/helier_e/Library/Caches/node-gyp/16.14.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/helier_e/Library/Caches/node-gyp/16.14.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/helier_e/Library/Caches/node-gyp/16.14.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp verb command build [] npm ERR! gyp verb build type Release npm ERR! gyp verb architecture x64 npm ERR! gyp verb node dev dir /Users/helier_e/Library/Caches/node-gyp/16.14.0 npm ERR! gyp verb `which` succeeded for `make` /usr/bin/make npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! 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) npm ERR! In file included from ../src/common.cc:24: npm ERR! /usr/local/include/vips/vips8:35:10: fatal error: 'glib-object.h' file not found npm ERR! #include npm ERR! ^~~~~~~~~~~~~~~ npm ERR! 1 error generated. npm ERR! make: *** [Release/obj.target/sharp-darwin-x64/src/common.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Darwin 19.6.0 npm ERR! gyp ERR! command "/Users/helier_e/.nvm/versions/node/v16.14.0/bin/node" "/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp npm ERR! gyp ERR! node -v v16.14.0 npm ERR! gyp ERR! node-gyp -v v8.4.1 npm ERR! gyp ERR! not ok npm verb exit 1 npm timing npm Completed in 14232ms npm verb unfinished npm timer reify 1648547571876 npm verb unfinished npm timer reify:build 1648547578006 npm verb unfinished npm timer build 1648547578007 npm verb unfinished npm timer build:deps 1648547578007 npm verb unfinished npm timer build:run:install 1648547578012 npm verb unfinished npm timer build:run:install:node_modules/sharp 1648547578012 npm verb code 1

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/helier_e/.npm/_logs/2022-03-29T09_52_51_691Z-debug-0.log

@lovell
Copy link
Owner

lovell commented Mar 29, 2022

Warning: vips 8.12.1 is already installed and up-to-date.

sharp v0.30.x requires libvips v8.12.2, please brew update && brew upgrade

https://github.com/Homebrew/homebrew-core/blob/master/Formula/vips.rb#L4

@ricovitch
Copy link
Author

Oh yes that makes sense. I'll try to update and keep you informed.
Thank you for your support.

@ricovitch
Copy link
Author

It seems like I'm unable to get the 8.12.2 through brew.
Here is the output of brew info vips after running brew uninstall vips

vips: stable 8.12.1 (bottled)
Image processing library
https://github.com/libvips/libvips
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/vips.rb

I assume it should display vips: stable 8.12.2 ?

@lovell
Copy link
Owner

lovell commented Mar 29, 2022

Did you run brew update && brew upgrade? Perhaps your homebrew is also locked to this corporate proxy?

@ricovitch
Copy link
Author

ricovitch commented Mar 29, 2022

You were right ! Brew was locked by the proxy. brew update command was failing without configuring HTTP_PROXY and HTTPS_PROXY env vars.

So I've been able to install libvips 8.12.2 globally with brew.
Now running brew info vips output this

vips: stable 8.12.2 (bottled)
Image processing library
https://github.com/libvips/libvips
/usr/local/Cellar/vips/8.12.2_1 (165 files, 13.6MB) *
  Poured from bottle on 2022-03-29 at 14:29:19
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/vips.rb

Here is the new debug log from npm install --verbose sharp

npm timing command:install Completed in 12828ms
npm verb stack Error: command failed
npm verb stack     at ChildProcess.<anonymous> (/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
npm verb stack     at ChildProcess.emit (node:events:520:28)
npm verb stack     at maybeClose (node:internal/child_process:1092:16)
npm verb stack     at Socket.<anonymous> (node:internal/child_process:451:11)
npm verb stack     at Socket.emit (node:events:520:28)
npm verb stack     at Pipe.<anonymous> (node:net:687:12)
npm verb pkgid sharp@0.30.3
npm verb cwd /Users/helier_e/Dev/tests/gatsby/sharp-install
npm verb Darwin 19.6.0
npm verb argv "/Users/helier_e/.nvm/versions/node/v16.14.0/bin/node" "/Users/helier_e/.nvm/versions/node/v16.14.0/bin/npm" "install" "sharp" "--verbose"
npm verb node v16.14.0
npm verb npm  v8.3.1
npm ERR! code 1
npm ERR! path /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm ERR! sharp: Detected globally-installed libvips v8.12.2
npm ERR! sharp: Building from source via node-gyp
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli   '/Users/helier_e/.nvm/versions/node/v16.14.0/bin/node',
npm ERR! gyp verb cli   '/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
npm ERR! gyp verb cli   'rebuild'
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@16.14.0 | darwin | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb find Python Python is not set from command line or npm configuration
npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
npm ERR! gyp verb find Python checking if "python3" can be used
npm ERR! gyp verb find Python - executing "python3" to get executable path
npm ERR! gyp verb find Python - executable path is "/usr/local/opt/python@3.9/bin/python3.9"
npm ERR! gyp verb find Python - executing "/usr/local/opt/python@3.9/bin/python3.9" to get version
npm ERR! gyp verb find Python - version is "3.9.12"
npm ERR! gyp info find Python using Python version 3.9.12 found at "/usr/local/opt/python@3.9/bin/python3.9"
npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 16.14.0
npm ERR! gyp verb command install [ '16.14.0' ]
npm ERR! gyp verb install input version string "16.14.0"
npm ERR! gyp verb install installing version: 16.14.0
npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed
npm ERR! gyp verb install version is already installed, need to check "installVersion"
npm ERR! gyp verb got "installVersion" 9
npm ERR! gyp verb needs "installVersion" 9
npm ERR! gyp verb install version is good
npm ERR! gyp verb get node dir target node version installed: 16.14.0
npm ERR! gyp verb build dir attempting to create "build" dir: /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/build
npm ERR! gyp verb build dir "build" dir needed to be created? Yes
npm ERR! gyp verb build/config.gypi creating config file
npm ERR! gyp verb build/config.gypi writing out config file: /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/build/config.gypi
npm ERR! gyp verb config.gypi checking for gypi file: /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/config.gypi
npm ERR! gyp verb common.gypi checking for gypi file: /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/common.gypi
npm ERR! gyp verb gyp gyp format was not specified; forcing "make"
npm ERR! gyp info spawn /usr/local/opt/python@3.9/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/helier_e/Library/Caches/node-gyp/16.14.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/helier_e/Library/Caches/node-gyp/16.14.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/helier_e/Library/Caches/node-gyp/16.14.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! Package gobject-2.0 was not found in the pkg-config search path.
npm ERR! Perhaps you should add the directory containing `gobject-2.0.pc'
npm ERR! to the PKG_CONFIG_PATH environment variable
npm ERR! Package 'gobject-2.0', required by 'vips', not found
npm ERR! gyp: Call to 'PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.15:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig" pkg-config --libs vips-cpp' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:259:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 19.6.0
npm ERR! gyp ERR! command "/Users/helier_e/.nvm/versions/node/v16.14.0/bin/node" "/Users/helier_e/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/helier_e/Dev/tests/gatsby/sharp-install/node_modules/sharp
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm verb exit 1

@ricovitch
Copy link
Author

ricovitch commented Mar 29, 2022

Looks like I also had issues with brew symlinks for some libs.
Using the solution from the following comment I've been able to fix these issues : https://stackoverflow.com/a/26647594/3641075

Now finally npm install sharp worked !
It was a difficult process but you've been very helpful. Thank you so much ❤️

@lovell
Copy link
Owner

lovell commented Mar 29, 2022

Please can you now update your organisation's internal documentation relating to the use of this corporate proxy so your colleagues don't have to go through the same process.

I'll also leave https://opencollective.com/libvips here in case Airbus are looking for ways to invest some of the billions of profit it makes in helping to maintain the open source software upon which it depends.

@lovell lovell closed this as completed Mar 29, 2022
@ricovitch
Copy link
Author

I'll do my best to promote documentation and opensource backing culture at my level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants