sharp: ECONNREFUSED when using HTTPS over HTTP proxy

gyp WARN EACCES user “root” does not have permission to access the dev dir “/root/.node-gyp/6.9.4” gyp WARN EACCES attempting to reinstall using temporary dev dir “/opt/yrd_app/node-generator-img-activity/node_modules/sharp/.node-gyp” ERROR: Download of https://dl.bintray.com/lovell/sharp/libvips-8.4.2-linux-x64.tar.gz failed: connect ECONNREFUSED 35.166.56.1:443 gyp: Call to ‘LDD_VERSION=“ldd (GNU libc) 2.17 Copyright © 2012 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. 由 Roland McGrath 和 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 (/root/work/node-v6.9.4-linux-x64/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:215:12) gyp ERR! System Linux 3.10.0-327.22.2.el7.x86_64 gyp ERR! command “/root/work/node-v6.9.4-linux-x64/bin/node” “/root/work/node-v6.9.4-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /opt/yrd_app/node-generator-img-activity/node_modules/sharp gyp ERR! node -v v6.9.4 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

npm ERR! Linux 3.10.0-327.22.2.el7.x86_64 npm ERR! argv “/root/work/node-v6.9.4-linux-x64/bin/node” “/root/work/node-v6.9.4-linux-x64/bin/npm” “install” “–registry=https://registry.npm.taobao.org” npm ERR! node v6.9.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

npm ERR! sharp@0.17.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.17.0 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! /opt/yrd_app/node-generator-img-activity/npm-debug.log

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (10 by maintainers)

Commits related to this issue

Most upvoted comments

@mirow sharp will honour npm’s https-proxy setting.