File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ exports.hasGit = () => {
37
37
38
38
exports . hasPnpm = ( ) => {
39
39
if ( process . env . VUE_CLI_TEST ) {
40
- return false
40
+ return true
41
41
}
42
42
if ( _hasPnpm != null ) {
43
43
return _hasPnpm
Original file line number Diff line number Diff line change @@ -390,11 +390,7 @@ module.exports = class Creator extends EventEmitter {
390
390
// ask for packageManager once
391
391
const savedOptions = loadOptions ( )
392
392
if ( ! savedOptions . packageManager && ( hasYarn ( ) || hasPnpm ( ) ) ) {
393
- const packageManagerChoices = [ {
394
- name : 'Use NPM' ,
395
- value : 'npm' ,
396
- short : 'NPM'
397
- } ]
393
+ const packageManagerChoices = [ ]
398
394
399
395
if ( hasYarn ( ) ) {
400
396
packageManagerChoices . push ( {
@@ -404,6 +400,12 @@ module.exports = class Creator extends EventEmitter {
404
400
} )
405
401
}
406
402
403
+ packageManagerChoices . push ( {
404
+ name : 'Use NPM' ,
405
+ value : 'npm' ,
406
+ short : 'NPM'
407
+ } )
408
+
407
409
if ( hasPnpm ( ) ) {
408
410
packageManagerChoices . push ( {
409
411
name : 'Use PNPM' ,
You can’t perform that action at this time.
0 commit comments