diff --git a/lib/npm-installation-manager.ts b/lib/npm-installation-manager.ts index 2d3b154992..5dad1eaa30 100644 --- a/lib/npm-installation-manager.ts +++ b/lib/npm-installation-manager.ts @@ -116,7 +116,8 @@ export class NpmInstallationManager { private isPackageUnpacked(packagePath: string): IFuture { return (() => { return this.$fs.getFsStats(packagePath).wait().isDirectory() && - this.$fs.enumerateFilesInDirectorySync(packagePath).length > 1; + this.$fs.exists(path.join(packagePath, "framework")).wait() && + this.$fs.enumerateFilesInDirectorySync(path.join(packagePath, "framework")).length > 1; }).future()(); } }