diff --git a/packages/cli/src/executors/system/system.executors.ts b/packages/cli/src/executors/system/system.executors.ts index cc1f0dfd..520128cd 100644 --- a/packages/cli/src/executors/system/system.executors.ts +++ b/packages/cli/src/executors/system/system.executors.ts @@ -407,16 +407,13 @@ export class SystemExecutors { bar.stop(); this.logger.error(`Failed to download Tipi: ${err}`); spinner.fail(`\nFailed to download Tipi ${targetVersion}`); - writer.close(); reject(err); }); writer.on('finish', () => { this.logger.info('Download complete'); bar.stop(); - writer.close(() => { - resolve(''); - }); + resolve(''); }); }); }).catch((e) => {