Skip to content

Commit bf41a25

Browse files
clydindgp1130
authored andcommitted
fix(@angular/cli): prevent postinstall script errors from blocking install
(cherry picked from commit 94dfb4c)
1 parent 084dad6 commit bf41a25

File tree

1 file changed

+5
-2
lines changed
  • packages/angular/cli/bin/postinstall

1 file changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env node
22
'use strict';
33

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

0 commit comments

Comments
 (0)