We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 313a44d commit 7cba8b2Copy full SHA for 7cba8b2
lib/npm-installation-manager.ts
@@ -71,7 +71,7 @@ export class NpmInstallationManager implements INpmInstallationManager {
71
private installCore(packageName: string, pathToSave: string, version: string, dependencyType: string): IFuture<string> {
72
return (() => {
73
// 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) {
+ if(this.isURL(packageName) || this.$fs.exists(packageName).wait() || packageName.indexOf(".") === 0 || packageName.indexOf(".tgz") >= 0) {
75
version = null;
76
} else {
77
version = version || this.getLatestCompatibleVersion(packageName).wait();
0 commit comments