Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created April 30, 2021 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/6f482a2f246c16e9e4e7663f4417db43 to your computer and use it in GitHub Desktop.
Save isaacs/6f482a2f246c16e9e4e7663f4417db43 to your computer and use it in GitHub Desktop.
diff --git a/lib/utils/update-notifier.js b/lib/utils/update-notifier.js
index 0a19be94e..4913b2ae1 100644
--- a/lib/utils/update-notifier.js
+++ b/lib/utils/update-notifier.js
@@ -68,6 +68,7 @@ const updateNotifier = module.exports = async (npm, spec = 'latest') => {
// always prefer latest, even if doing --tag=whatever on the cmd
defaultTag: 'latest',
...npm.flatOptions,
+ timeout: 30,
}).catch(() => null)
// if pacote failed, give up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment