@@ -78,8 +78,6 @@ class PackageManager {
78
78
if ( ! SUPPORTED_PACKAGE_MANAGERS . includes ( this . bin ) ) {
79
79
throw new Error ( `Unknown package manager: ${ this . bin } ` )
80
80
}
81
-
82
- this . execBin = process . env . VUE_CLI_PACKAGE_MANAGER_BIN || this . bin
83
81
}
84
82
85
83
// Any command that implemented registry-related feature should support
@@ -164,7 +162,7 @@ class PackageManager {
164
162
165
163
async install ( ) {
166
164
const args = await this . addRegistryToArgs ( PACKAGE_MANAGER_CONFIG [ this . bin ] . install )
167
- return executeCommand ( this . execBin , args , this . context )
165
+ return executeCommand ( this . bin , args , this . context )
168
166
}
169
167
170
168
async add ( packageName , isDev = true ) {
@@ -173,7 +171,7 @@ class PackageManager {
173
171
packageName ,
174
172
...( isDev ? [ '-D' ] : [ ] )
175
173
] )
176
- return executeCommand ( this . execBin , args , this . context )
174
+ return executeCommand ( this . bin , args , this . context )
177
175
}
178
176
179
177
async upgrade ( packageName ) {
@@ -194,15 +192,15 @@ class PackageManager {
194
192
...PACKAGE_MANAGER_CONFIG [ this . bin ] . add ,
195
193
packageName
196
194
] )
197
- return executeCommand ( this . execBin , args , this . context )
195
+ return executeCommand ( this . bin , args , this . context )
198
196
}
199
197
200
198
async remove ( packageName ) {
201
199
const args = [
202
200
...PACKAGE_MANAGER_CONFIG [ this . bin ] . remove ,
203
201
packageName
204
202
]
205
- return executeCommand ( this . execBin , args , this . context )
203
+ return executeCommand ( this . bin , args , this . context )
206
204
}
207
205
}
208
206
0 commit comments