score:1

work with none of these solutions for windows. then, i have added --timeout as a param to execute.

ex:

npx npm-check-updates --timeout 200000

score:4

this answer is a bit late, but it's useful for future readers.

as of npm v7, there is a --fetch-timeout option.

when you run npm install add --fetch-timeout:

npm install --fetch-timeout=60000

there is also a .npmrc configuration setting called fetch-timeout. you can add the following to ~/.npmrc.

fetch-timeout=60000

or run the following

npm config set fetch-timeout 60000

score:11

update npm configuration using:

npm config set fetch-retry-maxtimeout 60000 -g

see the documentation and the available options.

score:12

add this to your .npmrc file:

timeout=60000

score:16

i don't know how similar to your problem. but i had trouble executing the following command after executing npm install -g npm-check-updates:

ncu -u

i just kept increasing the timeout after the command until it was fully executed.

ncu -u --timeout 100000

Related Query

More Query from same tag