Skip to content

Commit 2e398d0

Browse files
alan-agius4vikerman
authored andcommitted
fix(@angular/cli): updated CLI should not have analytics enabled
In the case users don't have analytics globally configured when the CLI will self update during ng update. It will prompt to configure this. However, afterwards the update will fail with `Repository is not clean. Please commit or stash any changes before updating.` as there would be uncommited local changed.
1 parent 9e633ee commit 2e398d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular/cli/tasks/install-package.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export function runTempPackageBin(
149149
env: {
150150
...process.env,
151151
NG_DISABLE_VERSION_CHECK: 'true',
152+
NG_CLI_ANALYTICS: 'false',
152153
},
153154
});
154155

0 commit comments

Comments
 (0)