Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Timeout trying to fetch resolutions from npx-force-resolutions

Tags:

node.js

npm

npx

I am trying to force resolve certain dependencies using below command

npx npm-force-resolutions

After every attempt it throws a timeout error and breaks out.

Stacktrace:

Error: Timeout trying to fetch resolutions from npm at switch__2144__auto__ (C:\Users\***\AppData\Roaming\npm-cache\_npx\13732\node_modules\npm-force-resolutions\out\npm_force_resolutions\core.cljs:61:3)

like image 281
Humble Bee Avatar asked Oct 20 '25 02:10

Humble Bee


1 Answers

Downgrading to 0.0.3 version of npm-force-resolutions seems to have fixed the issue. I did try timeout in .npmrc, didn't quite helped.

Run npx [email protected]

or if you had this in your scripts section of package.json then update as below:

"preinstall": "npx [email protected]"

References: https://github.com/rogeriochaves/npm-force-resolutions/issues/33

like image 193
Humble Bee Avatar answered Oct 21 '25 15:10

Humble Bee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!