Closed sabrehagen closed 8 years ago
npm WARN deprecated sharp@0.12.2: 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 sharp@0.18.1
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 sharp@0.18.1
> sharp@0.18.1 install /app/node_modules/sharp
> node-gyp rebuild
ERROR: musl libc (x86_64) requires manual installation
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 stemn@0.0.817 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.18.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.18.1 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:
> sharp@0.18.1 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 -v
vips-8.5.6-Sun Jun 11 18:20:56 GMT 2017
# apk info | grep fftw
fftw-double-libs
fftw-single-libs
fftw-long-double-libs
fftw
That's it - thanks so much!
Should this go in the main docs as well?
@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!
On Ubuntu 14.04 x64 running node v6.2.0 and npm 3.8.9,
npm install sharp
yields the following error message: