From 7631bbe10e04b45c50428c7d1e8cb6d577b0f5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Mon, 10 Jul 2017 22:17:09 -0700 Subject: [PATCH] fix(updater): ignore some kinds of update-notifier errors --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d6ef5e5..0052806 100755 --- a/index.js +++ b/index.js @@ -65,7 +65,11 @@ function npx (argv) { if ((!existing && !argv.call) || argv.packageRequested) { // We only fire off the updateNotifier if we're installing things if (argv.npxPkg) { - require('update-notifier')({pkg: require(argv.npxPkg)}).notify() + try { + require('update-notifier')({ + pkg: require(argv.npxPkg) + }).notify() + } catch (e) {} } // Some npm packages need to be installed. Let's install them! return ensurePackages(argv.package, argv).then(results => {