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

Fail to install #3431

Closed
2 tasks done
buyBread opened this issue Nov 3, 2022 · 2 comments
Closed
2 tasks done

Fail to install #3431

buyBread opened this issue Nov 3, 2022 · 2 comments

Comments

@buyBread
Copy link

buyBread commented Nov 3, 2022

Possible install-time or require-time problem

  • 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.

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

npm verb cli /usr/bin/node /usr/local/bin/npm
npm info using npm@8.19.2
npm info using node@v18.11.0
npm timing npm:load:whichnode Completed in 1ms
npm timing config:load:defaults Completed in 1ms
npm timing config:load:file:/usr/local/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 1ms
npm timing config:load:project Completed in 1ms
npm timing config:load:file:/home/buybread/.npmrc Completed in 0ms
npm timing config:load:user Completed in 0ms
npm timing config:load:file:/usr/etc/npmrc Completed in 2ms
npm timing config:load:global Completed in 2ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 10ms
npm timing npm:load:configload Completed in 10ms
npm timing npm:load:mkdirpcache Completed in 1ms
npm timing npm:load:mkdirplogs Completed in 0ms
npm verb title npm install sharp
npm verb argv "install" "--loglevel" "verbose" "--foreground-scripts" "sharp"
npm timing npm:load:setTitle Completed in 1ms
npm timing config:load:flatten Completed in 3ms
npm timing npm:load:display Completed in 7ms
npm verb logfile logs-max:10 dir:/home/buybread/.npm/_logs
npm verb logfile /home/buybread/.npm/_logs/2022-11-03T20_05_13_363Z-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 27ms
npm timing arborist:ctor Completed in 1ms
npm timing idealTree:init Completed in 44ms
npm timing idealTree:userRequests Completed in 1ms
npm verb shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules
npm http fetch GET 200 https://registry.npmjs.org/sharp 52ms (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/node-addon-api 34ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color 36ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 37ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/semver 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tar-fs 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-get 42ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 42ms (cache hit)
npm timing idealTree:#root Completed in 107ms
npm http fetch GET 200 https://registry.npmjs.org/color-convert 51ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/rc 43ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/expand-template 52ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-string 53ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 50ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/github-from-package 53ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/pump 50ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lru-cache 49ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/minimist 57ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/once 50ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils 56ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/decompress-response 52ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tar-stream 48ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/chownr 51ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 50ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/node-abi 58ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-concat 54ms (cache hit)
npm timing idealTree:node_modules/sharp Completed in 80ms
npm http fetch GET 200 https://registry.npmjs.org/color-name 9ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 8ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-name 10ms (cache hit)
npm timing idealTree:node_modules/color Completed in 15ms
npm timing idealTree:node_modules/color-convert Completed in 1ms
npm timing idealTree:node_modules/color-name Completed in 0ms
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 3ms (cache hit)
npm timing idealTree:node_modules/color-string Completed in 7ms
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://registry.npmjs.org/ini 9ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/deep-extend 12ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 14ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 13ms (cache hit)
npm timing idealTree:node_modules/prebuild-install Completed in 27ms
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://registry.npmjs.org/wrappy 4ms (cache hit)
npm timing idealTree:node_modules/pump Completed in 6ms
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 http fetch GET 200 https://registry.npmjs.org/yallist 3ms (cache hit)
npm timing idealTree:node_modules/semver Completed in 4ms
npm timing idealTree:node_modules/lru-cache Completed in 1ms
npm http fetch GET 200 https://registry.npmjs.org/mimic-response 4ms (cache hit)
npm timing idealTree:node_modules/simple-get Completed in 7ms
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/strip-json-comments Completed in 0ms
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 timing idealTree:node_modules/tar-fs Completed in 10ms
npm timing idealTree:node_modules/chownr Completed in 0ms
npm http fetch GET 200 https://registry.npmjs.org/buffer 4ms (cache hit)
npm timing idealTree:node_modules/tar-stream Completed in 9ms
npm http fetch GET 200 https://registry.npmjs.org/base64-js 6ms (cache hit)
npm timing idealTree:node_modules/bl Completed in 8ms
npm timing idealTree:node_modules/buffer Completed in 0ms
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/tunnel-agent Completed in 0ms
npm timing idealTree:node_modules/wrappy Completed in 0ms
npm timing idealTree:node_modules/yallist Completed in 0ms
npm timing idealTree:buildDeps Completed in 294ms
npm timing idealTree:fixDepFlags Completed in 1ms
npm timing idealTree Completed in 343ms
npm timing reify:loadTrees Completed in 345ms
npm timing reify:diffTrees Completed in 3ms
npm timing reify:retireShallow Completed in 1ms
npm timing reify:createSparse Completed in 7ms
npm timing reify:loadBundles Completed in 0ms
npm timing reifyNode:node_modules/chownr Completed in 140ms
npm timing reifyNode:node_modules/strip-json-comments Completed in 141ms
npm timing reifyNode:node_modules/ini Completed in 141ms
npm timing reifyNode:node_modules/wrappy Completed in 141ms
npm timing reifyNode:node_modules/end-of-stream Completed in 142ms
npm timing reifyNode:node_modules/once Completed in 142ms
npm timing reifyNode:node_modules/mkdirp-classic Completed in 141ms
npm timing reifyNode:node_modules/simple-swizzle Completed in 142ms
npm timing reifyNode:node_modules/color-string Completed in 142ms
npm timing reifyNode:node_modules/color-name Completed in 143ms
npm timing reifyNode:node_modules/fs-constants Completed in 146ms
npm timing reifyNode:node_modules/mimic-response Completed in 145ms
npm timing reifyNode:node_modules/decompress-response Completed in 145ms
npm timing reifyNode:node_modules/lru-cache Completed in 146ms
npm timing reifyNode:node_modules/tunnel-agent Completed in 145ms
npm timing reifyNode:node_modules/color Completed in 146ms
npm timing reifyNode:node_modules/base64-js Completed in 148ms
npm timing reifyNode:node_modules/yallist Completed in 148ms
npm timing reifyNode:node_modules/expand-template Completed in 148ms
npm timing reifyNode:node_modules/simple-concat Completed in 150ms
npm timing reifyNode:node_modules/deep-extend Completed in 150ms
npm timing reifyNode:node_modules/pump Completed in 150ms
npm timing reifyNode:node_modules/napi-build-utils Completed in 150ms
npm timing reifyNode:node_modules/is-arrayish Completed in 152ms
npm timing reifyNode:node_modules/color-convert Completed in 153ms
npm timing reifyNode:node_modules/detect-libc Completed in 154ms
npm timing reifyNode:node_modules/tar-stream Completed in 156ms
npm timing reifyNode:node_modules/simple-get Completed in 157ms
npm timing reifyNode:node_modules/buffer Completed in 159ms
npm timing reifyNode:node_modules/github-from-package Completed in 160ms
npm timing reifyNode:node_modules/rc Completed in 160ms
npm timing reifyNode:node_modules/bl Completed in 163ms
npm timing reifyNode:node_modules/prebuild-install Completed in 162ms
npm timing reifyNode:node_modules/node-abi Completed in 163ms
npm timing reifyNode:node_modules/minimist Completed in 167ms
npm timing reifyNode:node_modules/node-addon-api Completed in 172ms
npm timing reifyNode:node_modules/tar-fs Completed in 173ms
npm timing reifyNode:node_modules/semver Completed in 174ms
npm timing reifyNode:node_modules/sharp Completed in 177ms
npm timing reify:unpack Completed in 179ms
npm timing reify:unretire Completed in 1ms
npm timing build:queue Completed in 2ms
npm timing build:link:node_modules/prebuild-install Completed in 1ms
npm timing build:link:node_modules/semver Completed in 0ms
npm timing build:link:node_modules/rc Completed in 1ms
npm timing build:link Completed in 2ms
npm info run sharp@0.31.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.31.1 install
> (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://registry.npmjs.org/-/npm/v1/security/advisories/bulk 363ms
npm timing auditReport:getReport Completed in 367ms
npm timing auditReport:init Completed in 0ms
npm timing reify:audit Completed in 368ms
sharp: Installation error: Invalid Version: 2.36.9000.0Completed in 368ms
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm info run sharp@0.31.1 install { code: 1, signal: null }
npm timing reify:rollback:createSparse Completed in 24ms
npm timing reify:rollback:retireShallow Completed in 0ms
npm timing command:install Completed in 944ms
npm verb stack Error: command failed
npm verb stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
npm verb stack     at ChildProcess.emit (node:events:513:28)
npm verb stack     at maybeClose (node:internal/child_process:1091:16)
npm verb stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm verb pkgid sharp@0.31.1
npm verb cwd /home/buybread
npm verb Linux 6.1.0-0.rc3.27.fc38.x86_64
npm verb node v18.11.0
npm verb npm  v8.19.2
npm ERR! code 1
npm ERR! path /home/buybread/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 timing npm Completed in 1042ms
npm verb unfinished npm timer reify 1667505913461
npm verb unfinished npm timer reify:build 1667505914016
npm verb unfinished npm timer build 1667505914016
npm verb unfinished npm timer build:deps 1667505914016
npm verb unfinished npm timer build:run:install 1667505914021
npm verb unfinished npm timer build:run:install:node_modules/sharp 1667505914021
npm verb code 1

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

  System:
    OS: Linux 6.1 Fedora Linux 38 (Workstation Edition Prerelease)
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 9.12 GB / 15.49 GB
    Container: Yes
    Shell: 5.2.2 - /bin/bash
  Binaries:
    Node: 18.11.0 - /usr/bin/node
    npm: 8.19.2 - /usr/local/bin/npm
@EvolutionAR

This comment was marked as off-topic.

@lovell
Copy link
Owner

lovell commented Nov 4, 2022

sharp: Installation error: Invalid Version: 2.36.9000.0

Please see #3423

@lovell lovell closed this as completed Nov 4, 2022
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

3 participants