@@ -78,8 +78,6 @@ class PackageManager {
7878 if ( ! SUPPORTED_PACKAGE_MANAGERS . includes ( this . bin ) ) {
7979 throw new Error ( `Unknown package manager: ${ this . bin } ` )
8080 }
81-
82- this . execBin = process . env . VUE_CLI_PACKAGE_MANAGER_BIN || this . bin
8381 }
8482
8583 // Any command that implemented registry-related feature should support
@@ -164,7 +162,7 @@ class PackageManager {
164162
165163 async install ( ) {
166164 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 )
168166 }
169167
170168 async add ( packageName , isDev = true ) {
@@ -173,7 +171,7 @@ class PackageManager {
173171 packageName ,
174172 ...( isDev ? [ '-D' ] : [ ] )
175173 ] )
176- return executeCommand ( this . execBin , args , this . context )
174+ return executeCommand ( this . bin , args , this . context )
177175 }
178176
179177 async upgrade ( packageName ) {
@@ -194,15 +192,15 @@ class PackageManager {
194192 ...PACKAGE_MANAGER_CONFIG [ this . bin ] . add ,
195193 packageName
196194 ] )
197- return executeCommand ( this . execBin , args , this . context )
195+ return executeCommand ( this . bin , args , this . context )
198196 }
199197
200198 async remove ( packageName ) {
201199 const args = [
202200 ...PACKAGE_MANAGER_CONFIG [ this . bin ] . remove ,
203201 packageName
204202 ]
205- return executeCommand ( this . execBin , args , this . context )
203+ return executeCommand ( this . bin , args , this . context )
206204 }
207205}
208206
0 commit comments