question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ECONNREFUSED when using HTTPS over HTTP proxy

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
lovellcommented, Jan 12, 2017

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

0reactions
lovellcommented, Jan 15, 2017

sharp v0.17.1 now available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node proxy error Error: connect ECONNREFUSED
ECONNREFUSED means there is no server process listening at the specified port. What hostname and port are you using?
Read more >
HTTP Request via Proxy (connect ECONNREFUSED 127.0 ...
Hi everyone! I'm trying to use a proxy server in HTTP Request (I put it in the options section of the node) And...
Read more >
Error: connect ECONNREFUSED 127.0.0.1:80 - Postman
It looks like you're sending a request to localhost:3000 , but your Proxy settings seem to be set to 127.0.0.1: 8080 Is your...
Read more >
How to Fix ECONNREFUSED – connection refused by server ...
Sometimes, the error happens because you're using the wrong port when connecting with FileZilla. If that's the case, all you need to do...
Read more >
basvandertogt - Roots Discourse
Was using dev-main. [proxy] › ✘ error [HPM] Error occurred while proxying request localhost:3000/ to http://mysite.test/ [ECONNREFUSED] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found