Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we configure timeout for force-resolutions or increase it? #33

Open
bilalbaqar opened this issue Apr 20, 2021 · 8 comments
Open

Can we configure timeout for force-resolutions or increase it? #33

bilalbaqar opened this issue Apr 20, 2021 · 8 comments

Comments

@bilalbaqar
Copy link

bilalbaqar commented Apr 20, 2021

I seem to be hitting this timeout while running version 0.0.10.

npx npm-force-resolutions
/home/jenkins/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__ (/home/jenkins/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.cljs:61:3)
    at /home/jenkins/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 (/home/jenkins/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.js:476:4)
    at cljs.core.async.impl.ioc-helpers/FN-IDX (/home/jenkins/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.js:492:85)
    at cljs.core.async.impl.ioc-helpers/run-state-machine (/home/jenkins/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 (/home/jenkins/node_modules/npm-force-resolutions/out/cljs/core/async/impl/ioc_helpers.cljs:39:6)
    at fret (/home/jenkins/node_modules/npm-force-resolutions/out/cljs/core/async.cljs:490:22)
    at take-cb (/home/jenkins/node_modules/npm-force-resolutions/out/cljs/core/async.cljs:188:63)
    at /home/jenkins/node_modules/npm-force-resolutions/out/cljs/core/async/impl/channels.cljs:160:45
    at Immediate.cljs$core$async$impl$dispatch$process_messages (/home/jenkins/node_modules/npm-force-resolutions/out/cljs/core/async/impl/dispatch.cljs:18:7)

Downgraded to 0.0.3 and it worked.

@bilalbaqar bilalbaqar changed the title Can we configure timeout for force-resolutions Can we configure timeout for force-resolutions or increase it? Apr 20, 2021
@anisimov74
Copy link

I'm suffering from this problem. How can I work it around?

@amitrai99
Copy link

amitrai99 commented Dec 3, 2021

Downgrading to v 0.0.3 fixed the issue for.
"preinstall": "npx [email protected]"

@trigunam
Copy link

trigunam commented Feb 1, 2022

Downgrading to v 0.0.3 fixed the issue for. "preinstall": "npx [email protected]"

This actually worked even in CentOS for CICD.

@runderworld
Copy link

@rogeriochaves broken since this commit for v0.0.4 (Feb 2021); any possibility of increasing timeout or making it configurable?

@kv0906
Copy link

kv0906 commented Jun 24, 2022

I'm using Mac os 12 ( chip M1 ) encounter this issue. Can someone help me to workaround?

@AlbertoMeQ
Copy link

This is still happening. Can we get a configurable timeout or simply a much longer one?

@gabriel-barros-pontes
Copy link

When I use "preinstall": "npx [email protected]" my npm audit still shows critical vulnerabilities.
Is there a new solution to this problem?
I am using npm-force-resolutions to fix vulnerabilities in my component library.

@billysandle95
Copy link

This is still a problem for v0.0.10, downgrading to v0.0.3 has temporarily addressed the issue. Is there any update on when a fix may be available in a future version?

tvdijen added a commit to OpenConext/OpenConext-engineblock that referenced this issue Aug 7, 2023
See: rogeriochaves/npm-force-resolutions#33

This may not be the proper fix, but I wasn't able to work around the issue and this fixed it.

NodeJS v14.21.3 (also tried v18 LTS)
NPM v6.14.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants