vue-cli: vue init stuck at project description when running vue init webpack

Version

3.8.4

Environment info

System:
    OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
    CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
  Binaries:
    Node: 12.4.0 - ~/.nvm/versions/node/v12.4.0/bin/node
    Yarn: Not Found
    npm: 6.9.0 - ~/.nvm/versions/node/v12.4.0/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 67.0.3
  npmGlobalPackages:
    @vue/cli: 3.8.4

Steps to reproduce

run vue init webpack <name>

What is expected?

Vue scaffold is created

What is actually happening?

Vue hangs on project description


I am aware that this was an issue with node v8, but I am getting this issue with the latest node version

Stuck here: ? Project name ? Project description (A Vue.js project)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 27
  • Comments: 18 (2 by maintainers)

Commits related to this issue

Most upvoted comments

For those, who is looking for temporary fix of vue init command. PowerShell (Windows):

cd "$(Split-Path $(whereis vue)[0] -Parent)\node_modules\@vue\cli-init"
npm i inquirer@~6.3.1

bash:

cd "$(dirname $(which vue))/node_modules/@vue/cli-init"
npm i inquirer@~6.3.1

Same issue.

I’m working in Mac OSX. 🤷🏻‍♂️

Fixed in inquirer@6.4.1 Now please try to clean your npm/yarn cache and reinstall @vue/cli @vue/cli-init

Please don’t post “same issue” comments, as the actual upstream issue has been identified already. Just click the +1 button if you want to express support.

Same issue. working in win10.

Same issue here.

~~Could someone propose a PR that locks inquirer at a lower version until this is resolved? Apparently the same was done here to temporarily fix it: https://github.com/umijs/create-umi/pull/70~~

Proposed a PR to fix it (hopefully, cannot test).