lovell / sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
https://sharp.pixelplumbing.com
Apache License 2.0
29.22k stars 1.29k forks source link

Prebuilt libvips binaries are not yet available for true-true #3689

Closed sidferreira closed 1 year ago

sidferreira commented 1 year ago

Possible install-time or require-time problem

Are you using the latest version of sharp?

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.

+ npm view sharp dist-tags.latest
0.32.1

Is this a problem with filesystem permissions?

If you are using npm v6 or earlier and installing as a root or sudo user, have you tried with the npm install --unsafe-perm flag?

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

If you are using the ignore-scripts feature of npm, have you tried with the npm install --ignore-scripts=false flag?

What is the complete output of running npm install --verbose --foreground-scripts sharp in an empty directory?

+ npm install -g sharp --arch x64 --platform linux --verbose --foreground-scripts npm verb cli /root/.nvm/versions/node/v20.2.0/bin/node /root/.nvm/versions/node/v20.2.0/bin/npm npm info using npm@9.6.6 npm info using node@v20.2.0 npm verb title npm install sharp x64 linux npm verb argv "install" "--global" "sharp" "--arch" "x64" "--platform" "linux" "--loglevel" "verbose" "--foreground-scripts" npm verb logfile logs-max:10 dir:/root/.npm/_logs/2023-06-01T19_54_44_882Z- npm verb logfile /root/.npm/_logs/2023-06-01T19_54_44_882Z-debug-0.log npm http fetch GET 200 https://registry.npmjs.org/sharp 182ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/x64 163ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/linux 156ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/keypair 98ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/color 104ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/detect-libc 106ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/simple-get 105ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 115ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 120ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 122ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/node-forge 126ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/mkdirp 130ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/tar-fs 129ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/semver 131ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/minimist 138ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/cat-names 165ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/psjson 183ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/nugget 418ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/daemonspawn 428ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/is-running 50ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/tree-kill 62ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/pretty-bytes 56ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/meow 72ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/debug 69ms (cache updated) npm http fetch GET 200 https://registry.npmjs.org/throttleit 66ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/request 74ms (cache updated) npm http fetch GET 200 https://registry.npmjs.org/unique-random-array 136ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/progress-stream 136ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/single-line-log 362ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/npm-execspawn 400ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/pump 70ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/color-convert 78ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/rc 72ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 63ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/color-string 81ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 67ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/decompress-response 70ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/simple-concat 70ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/github-from-package 80ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 80ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/expand-template 84ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/tar-stream 72ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils 83ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/node-abi 86ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/chownr 82ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/once 85ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/lru-cache 117ms (cache updated) npm http fetch GET 200 https://registry.npmjs.org/object-assign 52ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/loud-rejection 55ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/trim-newlines 53ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/redent 54ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/normalize-package-data 57ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/camelcase-keys 60ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/read-pkg-up 58ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/decamelize 61ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/map-obj 60ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/unique-random 140ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/shell-quote 42ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/execspawn 48ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/xtend 58ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/camelcase 52ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/signal-exit 58ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/currently-unhandled 60ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/hosted-git-info 58ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/indent-string 55ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/validate-npm-package-license 60ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/read-pkg 59ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/find-up 61ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/resolve 65ms (cache updated) npm http fetch GET 200 https://registry.npmjs.org/strip-indent 267ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/array-find-index 55ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/spdx-correct 42ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/is-core-module 46ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/supports-preserve-symlinks-flag 46ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/spdx-expression-parse 45ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/path-parse 47ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ms 43ms (cache updated) npm http fetch GET 200 https://registry.npmjs.org/util-extend 43ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/get-stdin 52ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/caseless 62ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/extend 65ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/aws-sign2 69ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/aws4 69ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/combined-stream 73ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/http-signature 70ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/form-data 73ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/is-typedarray 72ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/har-validator 74ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/json-stringify-safe 72ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/through2 82ms (cache updated) npm http fetch GET 200 https://registry.npmjs.org/mime-types 74ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/forever-agent 79ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/oauth-sign 81ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/performance-now 92ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/isstream 95ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/tough-cookie 93ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/uuid 93ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/qs 98ms (cache updated) npm http fetch GET 200 https://registry.npmjs.org/speedometer 150ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/readable-stream 48ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/path-type 42ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/pinkie-promise 44ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/path-exists 45ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/load-json-file 45ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/pinkie 44ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/parse-json 37ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/pify 40ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/strip-bom 44ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/graceful-fs 70ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/error-ex 37ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/is-utf8 40ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 38ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/repeating 38ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/is-finite 38ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/delayed-stream 61ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/assert-plus 61ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/psl 55ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ajv 66ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/asynckit 73ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/punycode 65ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/har-schema 75ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/sshpk 75ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/jsprim 77ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/mime-db 84ms (cache updated) npm http fetch GET 200 https://registry.npmjs.org/uri-js 42ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/fast-json-stable-stringify 46ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/json-schema-traverse 50ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/fast-deep-equal 52ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/asn1 49ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/verror 52ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/extsprintf 54ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/safer-buffer 51ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/json-schema 58ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/getpass 57ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/jsbn 60ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/bcrypt-pbkdf 58ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/dashdash 62ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ecc-jsbn 61ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/tweetnacl 62ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/core-util-is 41ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/has 52ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/function-bind 38ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/inherits 44ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/object-keys 42ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/isarray 48ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/string_decoder 56ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/spdx-license-ids 41ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/spdx-exceptions 43ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/color-name 40ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/color-name 41ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 55ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 39ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/deep-extend 43ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 45ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ini 44ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/wrappy 43ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/yallist 48ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/mimic-response 49ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/bl 49ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/fs-constants 52ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 43ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/buffer 48ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ieee754 43ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/base64-js 47ms (cache revalidated) npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm http fetch GET 200 https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz 369ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/node-abi/-/node-abi-3.43.0.tgz 369ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz 367ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/once/-/once-1.1.1.tgz 359ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz 369ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz 367ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz 379ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz 378ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz 377ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz 370ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz 391ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/color/-/color-4.2.3.tgz 399ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz 399ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz 405ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/unique-random/-/unique-random-1.0.0.tgz 398ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz 395ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz 394ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz 393ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz 403ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz 401ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/x64/-/x64-1.0.0.tgz 419ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz 401ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz 409ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz 405ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz 407ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz 406ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz 424ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz 408ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz 413ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/single-line-log/-/single-line-log-0.4.1.tgz 411ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/speedometer/-/speedometer-0.1.4.tgz 412ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz 415ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz 416ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-1.0.4.tgz 413ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz 414ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/util-extend/-/util-extend-1.0.3.tgz 412ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/pify/-/pify-2.3.0.tgz 420ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz 415ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/progress-stream/-/progress-stream-1.2.0.tgz 417ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/through2/-/through2-0.2.3.tgz 422ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz 420ms (cache miss) npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm http fetch GET 200 https://registry.npmjs.org/redent/-/redent-1.0.0.tgz 420ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/execspawn/-/execspawn-1.0.1.tgz 420ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz 417ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz 415ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/xtend/-/xtend-3.0.0.tgz 422ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz 415ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz 416ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz 419ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz 418ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/npm-execspawn/-/npm-execspawn-1.3.0.tgz 415ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/unique-random-array/-/unique-random-array-1.0.1.tgz 416ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/meow/-/meow-3.7.0.tgz 418ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz 423ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/is-running/-/is-running-1.0.5.tgz 423ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz 423ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz 442ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/cat-names/-/cat-names-1.0.2.tgz 423ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/daemonspawn/-/daemonspawn-1.0.1.tgz 423ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/psjson/-/psjson-0.1.0.tgz 428ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/nugget/-/nugget-1.6.2.tgz 427ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz 438ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/keypair/-/keypair-1.0.4.tgz 431ms (cache miss) npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm http fetch GET 200 https://registry.npmjs.org/tree-kill/-/tree-kill-0.1.1.tgz 440ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/linux/-/linux-4.2.1.tgz 488ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz 462ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz 486ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/sharp/-/sharp-0.32.1.tgz 520ms (cache miss) npm http fetch GET 200 https://registry.npmjs.org/node-forge/-/node-forge-0.6.49.tgz 482ms (cache miss) npm info run sharp@0.32.1 install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) > sharp@0.32.1 install > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.2/libvips-8.14.2-true-true.tar.br sharp: Installation error: Prebuilt libvips 8.14.2 binaries are not yet available for true-true sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm info run sharp@0.32.1 install { code: 1, signal: null } npm verb stack Error: command failed npm verb stack at ChildProcess. (/root/.nvm/versions/node/v20.2.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27) npm verb stack at ChildProcess.emit (node:events:511:28) npm verb stack at maybeClose (node:internal/child_process:1098:16) npm verb stack at ChildProcess._handle.onexit (node:internal/child_process:304:5) npm verb pkgid sharp@0.32.1 npm verb cwd /bitrise/src npm verb Linux 5.13.0-1015-gcp npm verb node v20.2.0 npm verb npm v9.6.6 npm ERR! code 1 npm ERR! path /root/.nvm/versions/node/v20.2.0/lib/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 verb exit 1 npm verb unfinished npm timer reify 1685649285028 npm verb unfinished npm timer reify:build 1685649289229 npm verb unfinished npm timer build 1685649289229 npm verb unfinished npm timer build:deps 1685649289229 npm verb unfinished npm timer build:run:install 1685649289239 npm verb unfinished npm timer build:run:install:node_modules/sharp 1685649289239 npm verb code 1 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-06-01T19_54_44_882Z-debug-0.log

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

+ npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
npm WARN exec The following package was not found and will be installed: envinfo@7.8.1
  System:
    OS: Linux 5.13 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Xeon(R) CPU @ 3.10GHz
    Memory: 30.48 GB / 31.35 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 20.2.0 - ~/.nvm/versions/node/v20.2.0/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 9.6.6 - ~/.nvm/versions/node/v20.2.0/bin/npm
lovell commented 1 year ago

npm install -g sharp --arch x64 --platform linux --verbose --foreground-scripts

Hi, please can you provide the complete output of running npm install --verbose --foreground-scripts sharp in an empty directory (removing the additional flags used here such as -g).

sidferreira commented 1 year ago

npm install -g sharp --arch x64 --platform linux --verbose --foreground-scripts

Hi, please can you provide the complete output of running npm install --verbose --foreground-scripts sharp in an empty directory (removing the additional flags used here such as -g).

Will do it tomorrow, but we need it globally, with appium... Also, it is OK on Macs.

sidferreira commented 1 year ago

npm install -g sharp --arch x64 --platform linux --verbose --foreground-scripts

Hi, please can you provide the complete output of running npm install --verbose --foreground-scripts sharp in an empty directory (removing the additional flags used here such as -g).

without global

+ npm install --verbose --foreground-scripts sharp
npm verb cli /root/.nvm/versions/node/v20.2.0/bin/node /root/.nvm/versions/node/v20.2.0/bin/npm
npm info using npm@9.6.6
npm info using node@v20.2.0
npm verb title npm install sharp
npm verb argv "install" "--loglevel" "verbose" "--foreground-scripts" "sharp"
npm verb logfile logs-max:10 dir:/root/.npm/_logs/2023-06-02T03_18_28_482Z-
npm verb logfile /root/.npm/_logs/2023-06-02T03_18_28_482Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/sharp 446ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 45ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc 75ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color 77ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/simple-get 76ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/tar-fs 77ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 79ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/semver 89ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 434ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/simple-concat 44ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 56ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 50ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/minimist 58ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/expand-template 60ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/chownr 71ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 84ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 71ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/decompress-response 80ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-string 89ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/lru-cache 85ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/once 89ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/pump 92ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/github-from-package 134ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils 452ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/node-abi 463ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/tar-stream 466ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/rc 474ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-name 34ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 33ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-name 35ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 30ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 32ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/deep-extend 35ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ini 39ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 46ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/wrappy 47ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/yallist 33ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/mimic-response 34ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/inherits 39ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/readable-stream 39ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/fs-constants 44ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/bl 46ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/buffer 33ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 35ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/string_decoder 35ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ieee754 31ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/base64-js 34ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz 108ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz 108ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz 111ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz 109ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz 110ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz 110ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz 110ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color/-/color-4.2.3.tgz 112ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz 115ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz 124ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/node-abi/-/node-abi-3.43.0.tgz 131ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz 136ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz 142ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/sharp/-/sharp-0.32.1.tgz 142ms (cache miss)
npm info run sharp@0.32.1 install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
> sharp@0.32.1 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.2/libvips-8.14.2-linux-x64.tar.br
sharp: Integrity check passed for linux-x64
prebuild-install info begin Prebuild-install version 7.1.1
prebuild-install info looking for local prebuild @ prebuilds/sharp-v0.32.1-napi-v7-linux-x64.tar.gz
prebuild-install info looking for cached prebuild @ /root/.npm/_prebuilds/8ad733-sharp-v0.32.1-napi-v7-linux-x64.tar.gz
prebuild-install http request GET https://github.com/lovell/sharp/releases/download/v0.32.1/sharp-v0.32.1-napi-v7-linux-x64.tar.gz
prebuild-install http 200 https://github.com/lovell/sharp/releases/download/v0.32.1/sharp-v0.32.1-napi-v7-linux-x64.tar.gz
prebuild-install info downloading to @ /root/.npm/_prebuilds/8ad733-sharp-v0.32.1-napi-v7-linux-x64.tar.gz.2528-7f2add4a3aba6.tmp
prebuild-install info renaming to @ /root/.npm/_prebuilds/8ad733-sharp-v0.32.1-napi-v7-linux-x64.tar.gz
prebuild-install info unpacking @ /root/.npm/_prebuilds/8ad733-sharp-v0.32.1-napi-v7-linux-x64.tar.gz
prebuild-install info unpack resolved to /bitrise/src/node_modules/sharp/build/Release/sharp-linux-x64.node
prebuild-install info install Successfully installed prebuilt binary!
npm info run sharp@0.32.1 install { code: 0, signal: null }
added 45 packages in 3s
10 packages are looking for funding
  run `npm fund` for details
npm verb exit 0
npm info ok 

with global


+ npm install -g sharp --arch x64 --platform linux --verbose --foreground-scripts
npm verb cli /root/.nvm/versions/node/v20.2.0/bin/node /root/.nvm/versions/node/v20.2.0/bin/npm
npm info using npm@9.6.6
npm info using node@v20.2.0
npm verb title npm install sharp x64 linux
npm verb argv "install" "--global" "sharp" "--arch" "x64" "--platform" "linux" "--loglevel" "verbose" "--foreground-scripts"
npm verb logfile logs-max:10 dir:/root/.npm/_logs/2023-06-02T03_18_31_565Z-
npm verb logfile /root/.npm/_logs/2023-06-02T03_18_31_565Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/sharp 12ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/x64 234ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/linux 384ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/minimist 35ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc 32ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 32ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color 34ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-get 33ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/semver 34ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 34ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tar-fs 35ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 38ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/node-forge 83ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp 90ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/cat-names 411ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/nugget 410ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/keypair 458ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/psjson 483ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/daemonspawn 551ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/single-line-log 40ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/pretty-bytes 44ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/meow 56ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/throttleit 69ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/debug 78ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/tree-kill 95ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/request 92ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/progress-stream 360ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/is-running 402ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/unique-random-array 437ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/npm-execspawn 497ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 44ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-string 44ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/github-from-package 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/expand-template 42ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/rc 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/node-abi 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils 42ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/decompress-response 37ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lru-cache 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-concat 36ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/pump 43ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/chownr 36ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/once 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 36ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tar-stream 36ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 36ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/trim-newlines 32ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/loud-rejection 39ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/normalize-package-data 44ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/camelcase-keys 49ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/object-assign 59ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/read-pkg-up 371ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/redent 393ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/decamelize 418ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/map-obj 427ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/unique-random 443ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/xtend 35ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/shell-quote 123ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/execspawn 391ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/read-pkg 41ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/camelcase 54ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/validate-npm-package-license 55ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/indent-string 51ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/signal-exit 59ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/currently-unhandled 62ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/find-up 57ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/resolve 63ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/hosted-git-info 65ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/strip-indent 433ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/array-find-index 344ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/spdx-correct 32ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/supports-preserve-symlinks-flag 37ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/is-core-module 39ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/path-parse 40ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/spdx-expression-parse 39ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ms 35ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/util-extend 357ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/get-stdin 50ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/extend 49ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/http-signature 51ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/aws4 57ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/form-data 57ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/aws-sign2 62ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/is-typedarray 63ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/combined-stream 67ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/through2 77ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/har-validator 73ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/performance-now 72ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/json-stringify-safe 77ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/oauth-sign 76ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/tough-cookie 75ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/uuid 76ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/isstream 85ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/mime-types 84ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/forever-agent 96ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/qs 101ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/speedometer 158ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/caseless 379ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/readable-stream 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/load-json-file 28ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/path-type 31ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/pinkie-promise 34ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/path-exists 40ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/pinkie 38ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/parse-json 32ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/strip-bom 36ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/pify 37ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/graceful-fs 40ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/error-ex 34ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/is-utf8 421ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/repeating 34ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/is-finite 354ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/har-schema 47ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ajv 50ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/asynckit 55ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/assert-plus 52ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/delayed-stream 58ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/jsprim 58ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/psl 53ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/punycode 54ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/sshpk 61ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/mime-db 63ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/uri-js 33ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/fast-json-stable-stringify 35ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/fast-deep-equal 37ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/json-schema-traverse 41ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/getpass 43ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/verror 48ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/json-schema 51ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/jsbn 48ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/dashdash 51ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/safer-buffer 51ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/bcrypt-pbkdf 49ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ecc-jsbn 50ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/extsprintf 58ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/asn1 56ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/tweetnacl 379ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/core-util-is 37ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/has 32ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/function-bind 31ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/string_decoder 8ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/inherits 9ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/object-keys 31ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/isarray 35ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/spdx-exceptions 418ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/spdx-license-ids 448ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-name 8ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-name 7ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 7ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 7ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/deep-extend 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ini 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/wrappy 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/yallist 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mimic-response 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/bl 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/fs-constants 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/buffer 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/base64-js 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ieee754 3ms (cache hit)
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm http fetch GET 200 https://registry.npmjs.org/once/-/once-1.1.1.tgz 376ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz 375ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/unique-random/-/unique-random-1.0.0.tgz 377ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz 372ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz 374ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz 373ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz 377ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz 380ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz 378ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz 382ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz 385ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/pify/-/pify-2.3.0.tgz 382ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz 394ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz 389ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/speedometer/-/speedometer-0.1.4.tgz 387ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz 388ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz 394ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz 392ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz 393ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz 394ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz 391ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/progress-stream/-/progress-stream-1.2.0.tgz 390ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/single-line-log/-/single-line-log-0.4.1.tgz 391ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/through2/-/through2-0.2.3.tgz 390ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-1.0.4.tgz 391ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/util-extend/-/util-extend-1.0.3.tgz 391ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz 401ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz 392ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/execspawn/-/execspawn-1.0.1.tgz 392ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz 389ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz 401ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz 399ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz 397ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/redent/-/redent-1.0.0.tgz 397ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz 395ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/xtend/-/xtend-3.0.0.tgz 402ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz 397ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/meow/-/meow-3.7.0.tgz 393ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/unique-random-array/-/unique-random-array-1.0.1.tgz 394ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz 391ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz 398ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/cat-names/-/cat-names-1.0.2.tgz 392ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/daemonspawn/-/daemonspawn-1.0.1.tgz 395ms (cache miss)
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm http fetch GET 200 https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz 412ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz 414ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/npm-execspawn/-/npm-execspawn-1.3.0.tgz 415ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz 428ms (cache miss)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm http fetch GET 200 https://registry.npmjs.org/nugget/-/nugget-1.6.2.tgz 413ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/is-running/-/is-running-1.0.5.tgz 422ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/keypair/-/keypair-1.0.4.tgz 425ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/x64/-/x64-1.0.0.tgz 478ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/node-forge/-/node-forge-0.6.49.tgz 455ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/tree-kill/-/tree-kill-0.1.1.tgz 626ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/linux/-/linux-4.2.1.tgz 752ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/psjson/-/psjson-0.1.0.tgz 752ms (cache miss)
npm info run sharp@0.32.1 install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
> sharp@0.32.1 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.2/libvips-8.14.2-true-true.tar.br
sharp: Installation error: Prebuilt libvips 8.14.2 binaries are not yet available for true-true
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm info run sharp@0.32.1 install { code: 1, signal: null }
npm verb stack Error: command failed
npm verb stack     at ChildProcess.<anonymous> (/root/.nvm/versions/node/v20.2.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
npm verb stack     at ChildProcess.emit (node:events:511:28)
npm verb stack     at maybeClose (node:internal/child_process:1098:16)
npm verb stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm verb pkgid sharp@0.32.1
npm verb cwd /bitrise/src
npm verb Linux 5.13.0-1015-gcp
npm verb node v20.2.0
npm verb npm  v9.6.6
npm ERR! code 1
npm ERR! path /root/.nvm/versions/node/v20.2.0/lib/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 verb exit 1
npm verb unfinished npm timer reify 1685675911712
npm verb unfinished npm timer reify:build 1685675918933
npm verb unfinished npm timer build 1685675918933
npm verb unfinished npm timer build:deps 1685675918933
npm verb unfinished npm timer build:run:install 1685675918942
npm verb unfinished npm timer build:run:install:node_modules/sharp 1685675918943
npm verb code 1
lovell commented 1 year ago

sharp: Installation error: Prebuilt libvips 8.14.2 binaries are not yet available for true-true

The npm CLI requires the use of equals separators when providing non-boolean switches, which includes --arch= and --platform=.

https://sharp.pixelplumbing.com/install#cross-platform

npm install sharp --arch=x64 --platform=linux ...

(As an aside, I generally discourage global installation of packages via npm, so if there's a way to avoid it please do so to help prevent future headaches.)

sidferreira commented 1 year ago

@lovell 🤦‍♂️ Indeed, it did the trick! tyvm!