Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Commit

Permalink
fix(updater): ignore some kinds of update-notifier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jul 11, 2017
1 parent c3027a9 commit 7631bbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 7631bbe

Please sign in to comment.