diff --git a/packages/schematics/migrations/20180225-switch-to-cli17.ts b/packages/schematics/migrations/20180225-switch-to-cli17.ts index 083b96b29f265..bb155f47ffcb6 100644 --- a/packages/schematics/migrations/20180225-switch-to-cli17.ts +++ b/packages/schematics/migrations/20180225-switch-to-cli17.ts @@ -17,7 +17,6 @@ export default { ['karma-cli']: undefined }; - json.dependencies = { ...json.dependencies, "@angular/animations": "5.2.6", @@ -35,6 +34,8 @@ export default { }; }); - unlinkSync('.angular_cli165.tgz'); + try { + unlinkSync('.angular_cli165.tgz'); + } catch (e) {} } };