From 677279783e22f8fd2e7a0d30e9affab505553013 Mon Sep 17 00:00:00 2001 From: Minchenko Valery Date: Fri, 16 Sep 2016 20:53:04 +0300 Subject: [PATCH] fix: check for old version of the CLI on empty project --- packages/angular-cli/upgrade/version.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/angular-cli/upgrade/version.ts b/packages/angular-cli/upgrade/version.ts index ca591ef62f63..ae48703e3b4c 100644 --- a/packages/angular-cli/upgrade/version.ts +++ b/packages/angular-cli/upgrade/version.ts @@ -76,6 +76,11 @@ export class Version { const configPath = CliConfig.configFilePath(); + + if (configPath === null) { + return new Version(null); + } + const configJson = readFileSync(configPath, 'utf8'); try {