@@ -86,7 +86,7 @@ module.exports = class Creator {
8686 const packageManager = (
8787 cliOptions . packageManager ||
8888 loadOptions ( ) . packageManager ||
89- ( hasYarn ? 'yarn' : 'npm' )
89+ ( hasYarn ( ) ? 'yarn' : 'npm' )
9090 )
9191
9292 await clearConsole ( )
@@ -112,7 +112,7 @@ module.exports = class Creator {
112112
113113 // intilaize git repository before installing deps
114114 // so that vue-cli-service can setup git hooks.
115- if ( hasGit ) {
115+ if ( hasGit ( ) ) {
116116 logWithSpinner ( `π` , `Initializing git repository...` )
117117 await run ( 'git init' )
118118 }
@@ -156,7 +156,7 @@ module.exports = class Creator {
156156 }
157157
158158 // commit initial state
159- if ( hasGit ) {
159+ if ( hasGit ( ) ) {
160160 await run ( 'git add -A' )
161161 if ( isTestOrDebug ) {
162162 await run ( 'git' , [ 'config' , 'user.name' , 'test' ] )
@@ -179,7 +179,7 @@ module.exports = class Creator {
179179
180180 async promptAndResolvePreset ( ) {
181181 // prompt
182- await clearConsole ( )
182+ await clearConsole ( true )
183183 const answers = await inquirer . prompt ( this . resolveFinalPrompts ( ) )
184184 debug ( 'vue-cli:answers' ) ( answers )
185185
@@ -320,7 +320,7 @@ module.exports = class Creator {
320320
321321 // ask for packageManager once
322322 const savedOptions = loadOptions ( )
323- if ( hasYarn && ! savedOptions . packageManager ) {
323+ if ( ! savedOptions . packageManager && hasYarn ( ) ) {
324324 outroPrompts . push ( {
325325 name : 'packageManager' ,
326326 type : 'list' ,
0 commit comments