Skip to content

Commit 7cba8b2

Browse files
committed
fixed exception for tgz
1 parent 313a44d commit 7cba8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/npm-installation-manager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class NpmInstallationManager implements INpmInstallationManager {
7171
private installCore(packageName: string, pathToSave: string, version: string, dependencyType: string): IFuture<string> {
7272
return (() => {
7373
// check if the packageName is url or local file and if it is, let npm install deal with the version
74-
if(this.isURL(packageName) || this.$fs.exists(packageName).wait() || packageName.indexOf(".") === 0) {
74+
if(this.isURL(packageName) || this.$fs.exists(packageName).wait() || packageName.indexOf(".") === 0 || packageName.indexOf(".tgz") >= 0) {
7575
version = null;
7676
} else {
7777
version = version || this.getLatestCompatibleVersion(packageName).wait();

0 commit comments

Comments
 (0)