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.

support for proxy config

See original GitHub issue
16:23 $ npm-check

autosuggest-highlight      ⛔️  NPM ERR!  Registry error getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
...

both env http_proxy, https_proxy (lower and uppercasE) and npm proxy and https_proxy are setup.

I guess this is because of @sindresorhus 's package-json - see https://github.com/sindresorhus/package-json/blob/master/index.js#L13

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
robmcguinnesscommented, Sep 15, 2016

Also behind a proxy and use npm-check frequently. My temporary workaround is to manually edit npm-check/node_modules/package-json/index.js:

var caw = require('caw');
return got(pkgUrl, {
  json: true,
  headers: headers,
  agent: caw()
})
3reactions
thtliifecommented, Aug 21, 2017

Thanks @robmcguinness for the fix with caw. I have forked the original package-json, and made the changes you suggested in the fork. Anyone requiring an easier fix, see the “Usage” section in the readme

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use a proxy server in Windows - Microsoft Support
To set up a proxy server connection manually · Select the Start button, then select Settings > Network & internet > Proxy. ·...
Read more >
Change proxy settings on Mac - Apple Support
Learn how to enter proxy server settings. To change these settings, choose Apple menu > System Settings, click Network in the sidebar, click...
Read more >
Proxy Configuration
Internet Explorer, Firefox, and Chrome support manual proxy configuration. Users can specify the proxy server and port for each protocol.
Read more >
Configuring proxy support in Operator Lifecycle Manager
If a global proxy is configured on the OpenShift Container Platform cluster, Operator Lifecycle Manager (OLM) automatically configures Operators that it manages ...
Read more >
How to Set Up a Proxy Server on Your PC, Mac, or Web Browser
Before setting up a proxy server, you need to check the proxy settings on your computer. The information in proxy settings can help...
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