Skip to content

Commit

Permalink
fix(@angular/cli): prevent postinstall script errors from blocking in…
Browse files Browse the repository at this point in the history
…stall

(cherry picked from commit 94dfb4c)
  • Loading branch information
clydin authored and dgp1130 committed Jan 21, 2020
1 parent 084dad6 commit bf41a25
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/angular/cli/bin/postinstall/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env node
'use strict';

require('./ng-update-message');
require('./analytics-prompt');
// These should not fail but if they do they should not block installation of the package
try {
require('./ng-update-message');
require('./analytics-prompt');
} catch (_) {}

0 comments on commit bf41a25

Please sign in to comment.