diff --git a/lib/services/livesync/livesync-service.ts b/lib/services/livesync/livesync-service.ts index f79e983373..5356e20eda 100644 --- a/lib/services/livesync/livesync-service.ts +++ b/lib/services/livesync/livesync-service.ts @@ -44,6 +44,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi public async liveSync(deviceDescriptors: ILiveSyncDeviceInfo[], liveSyncData: ILiveSyncInfo): Promise { const projectData = this.$projectDataService.getProjectData(liveSyncData.projectDir); + await this.$pluginsService.ensureAllDependenciesAreInstalled(projectData); await this.liveSyncOperation(deviceDescriptors, liveSyncData, projectData); } @@ -337,7 +338,6 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi projectDir: projectData.projectDir }); } else { - await this.$pluginsService.ensureAllDependenciesAreInstalled(projectData); // In case liveSync is called for a second time for the same projectDir. const isAlreadyLiveSyncing = this.liveSyncProcessesInfo[projectData.projectDir] && !this.liveSyncProcessesInfo[projectData.projectDir].isStopped;