rogeriochaves / npm-force-resolutions

Force npm to install a specific transitive dependency version
567 stars 28 forks source link

How to specify an http proxy? #38

Open sbley opened 3 years ago

sbley commented 3 years ago

I need to operate npm-force-resolutions behind a corporate proxy. How can I specify the http proxy?

Without a proxy I get this error message:

C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\npm_force_resolutions\core.cljs:61
  (go
  ^
Error: Timeout trying to fetch resolutions from npm
    at switch__2144__auto__ (C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\npm_force_resolutions\core.cljs:61:3)
    at C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\npm_force_resolutions\core.cljs:61:3
    at npm_force_resolutions$core$find_resolutions_$_state_machine__2145__auto____1 (C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resol
utions\out\npm_force_resolutions\core.js:476:4)
    at cljs.core.async.impl.ioc-helpers/FN-IDX (C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\npm_force_resolutions\core
.js:492:85)
    at cljs.core.async.impl.ioc-helpers/run-state-machine (C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\cljs\core\async
\impl\ioc_helpers.cljs:35:23)
    at cljs.core.async.impl.ioc-helpers/run-state-machine-wrapped (C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\cljs\co
re\async\impl\ioc_helpers.cljs:39:6)
    at fret (C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\cljs\core\async.cljs:490:22)
    at take-cb (C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\cljs\core\async.cljs:188:63)
    at C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\cljs\core\async\impl\channels.cljs:160:45
    at Immediate.cljs$core$async$impl$dispatch$process_messages (C:\Users\sbley\AppData\Roaming\npm-cache\_npx\10760\node_modules\npm-force-resolutions\out\cljs\core
\async\impl\dispatch.cljs:18:7)
github-user-7 commented 3 years ago

I also really need this. Please help! Thanks :)

I've configured npm for the proxy as described here, but it doesn't seem to make any difference for npm-force-resolutions. https://jjasonclark.com/how-to-setup-node-behind-web-proxy/

angusmccloud commented 3 years ago

@github-user-7 or @sbley - Did you find a resolution?

github-user-7 commented 3 years ago

Unfortunately no, I ended up just using a different system that isn't required to use our corporate proxy server.

sbley commented 3 years ago

No solution here :-/ I push to get rid of npm-force-resolutions in our project as soon as possible.

angusmccloud commented 3 years ago

Bummer... I unfortunately pulled it out of our project yesterday as well.

Clete2 commented 2 years ago

Need this too.