On Ubuntu 14.04 x64 running node v6.2.0 and npm 3.8.9, npm install sharp yields the following error message:
npm WARN deprecated [email protected]: CVE-2016-3714 https://github.com/lovell/sharp/issues/424
> [email protected] install /home/ubuntu/stemn/node_modules/sharp
> node-gyp rebuild
ERROR: https://dl.bintray.com/lovell/sharp/libvips-8.2.0-lin.tar.gz status code 404
gyp: Call to 'LDD_VERSION="ldd (Ubuntu EGLIBC 2.19-0ubuntu6.6) 2.19
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper." node -e "require('./binding').download_vips()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.13.0-74-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/stemn/node_modules/sharp
gyp ERR! node -v v6.2.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] No license field.
npm ERR! Linux 3.13.0-74-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "sharp"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sharp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sharp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sharp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/stemn/npm-debug.log
npm WARN deprecated [email protected]: CVE-2016-3714 https://github.com/lovell/sharp/issues/424
Please see #424
@sabrehagen Were you able to upgrade?
Closing this but please do re-open if there are still problems after upgrading.
Hi @lovell, still experiencing problems after upgrading, almost exactly one year later! :)
I'm trying to install [email protected] in this container: https://hub.docker.com/r/sabrehagen/alpine-consul-nodejs/
Below is my system state. I'm stuck, any help would be greatly appreciated.
# cat /etc/alpine-release
3.4.0
# apk add --update --repository http://dl-3.alpinelinux.org/alpine/edge/testing vips-tools
fetch http://dl-3.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
OK: 242 MiB in 64 packages
# npm install [email protected]
> [email protected] install /app/node_modules/sharp
> node-gyp rebuild
ERROR: musl libc (x86_64) requires manual installation - please see http://sharp.dimens.io/en/stable/install/
gyp: Call to 'LDD_VERSION="musl libc (x86_64)
Version 1.1.16
Dynamic Program Loader
Usage: ldd [options] [--] pathname" node -e "require('./binding').download_vips()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.8.0-54-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /app/node_modules/sharp
gyp ERR! node -v v8.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
Have you installed vips-dev (as well as, or instead of, vips-tools)? http://pkgs.alpinelinux.org/packages?name=vips-dev
Installing vips-dev got me a step closer. Have run into this issue now:
```# npm install sharp
[email protected] install /app/node_modules/sharp
node-gyp rebuild
Package fftw3 was not found in the pkg-config search path.
Perhaps you should add the directory containing fftw3.pc'
to the PKG_CONFIG_PATH environment variable
Package 'fftw3', required by 'vips', not found
Package 'fftw3', required by 'vips', not found
gyp: Call to 'PKG_CONFIG_PATH=":$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig" pkg-config --cflags-only-I vips-cpp vips glib-2.0 | sed s\/-I//g' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error:gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.8.0-54-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /app/node_modules/sharp
gyp ERR! node -v v8.1.0
gyp ERR! node-gyp -v v3.6.2
vips-8.5.6-Sun Jun 11 18:20:56 GMT 2017
fftw-double-libs
fftw-single-libs
fftw-long-double-libs
fftw
```
fftw-dev may be required also.
That's it - thanks so much!
Should this go in the main docs as well?
@wbyoung http://sharp.dimens.io/en/latest/install/#alpine-linux
@lovell oh I see… it's on latest and not stable at this point.
@wbyoung That's correct, each release automagically promotes the latest docs as "stable". Sorry for any confusion.
@lovell thanks for the quick responses & the awesome tools!
Most helpful comment
fftw-dev may be required also.