leveldown: prebuild --download hangs & fails behind proxy

Best guess: prebuild isn’t using my proxy settings. Even though they are set in environment variables, npm config AND command line flags.

Command:


sudo npm install leveldown --verbose --global --insecure --without-ssl --strict-ssl=false --proxy=http://xxxxx:3128 --https-proxy=http://xxxxxx:3128

Console output (just the last part)

npm info install leveldown@1.4.1

> leveldown@1.4.1 install /usr/local/lib/node_modules/leveldown
> prebuild --download

prebuild http request GET https://github.com/level/leveldown/releases/download/v1.4.1/leveldown-v1.4.1-node-v46-darwin-x64.tar.gz
prebuild WARN install socket hang up
prebuild info install Falling back to compilation
prebuild http request https://nodejs.org/dist/v4.1.1/node-v4.1.1.tar.gz
prebuild ERR! build connect ENETUNREACH 104.20.23.46:443
npm verb unsafe-perm in lifecycle false
npm info leveldown@1.4.1 Failed to exec install script
npm verb unlock done using /Users/zache/.npm/_locks/leveldown-8847a5c85fdd2424.lock for /usr/local/lib/node_modules/leveldown
npm verb stack Error: leveldown@1.4.1 install: `prebuild --download`
npm verb stack Exit status 2
npm verb stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
npm verb stack     at emitTwo (events.js:87:13)
npm verb stack     at EventEmitter.emit (events.js:172:7)
npm verb stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
npm verb stack     at emitTwo (events.js:87:13)
npm verb stack     at ChildProcess.emit (events.js:172:7)
npm verb stack     at maybeClose (internal/child_process.js:817:16)
npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npm verb pkgid leveldown@1.4.1
npm verb cwd /Users/zache/Code/queues
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "leveldown" "--verbose" "--global" "--insecure" "--without-ssl" "--strict-ssl=false" "--proxy=http://xxxx:3128" "--https-proxy=http://xxxxx:3128"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! code ELIFECYCLE

npm ERR! leveldown@1.4.1 install: `prebuild --download`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the leveldown@1.4.1 install script 'prebuild --download'.
npm ERR! This is most likely a problem with the leveldown package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     prebuild --download
npm ERR! You can get their info via:
npm ERR!     npm owner ls leveldown
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]
npm verb unbuild lib/node_modules/leveldown
npm info preuninstall leveldown@1.4.1
npm info uninstall leveldown@1.4.1
npm verb unbuild rmStuff leveldown@1.4.1 from /usr/local/lib/node_modules
npm info postuninstall leveldown@1.4.1
npm verb gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/leveldown

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/xxxx/Code/queues/npm-debug.log

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

We use prebuild-install now which should have support for proxies. See https://github.com/mafintosh/prebuild-install/commit/5993c1676c7530ecdc12409cb20cf6a39c0e47c7