Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue init stuck at project description when running vue init webpack <name> #4177

Closed
mboekhold opened this issue Jun 20, 2019 · 18 comments
Closed

Comments

@mboekhold
Copy link

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

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)

@haoqunjiang
Copy link
Member

SBoudrias/Inquirer.js#811
Upstream bug in inquirer.

@mboekhold
Copy link
Author

I'd like to add that I discovered that the webpack is deprecated introducing vue cli-3, not sure if this causes the problem though.

@slhck
Copy link

slhck commented Jun 20, 2019

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: umijs/create-umi#70

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

@asdico
Copy link

asdico commented Jun 20, 2019

Same issue.

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

@eryueweiyu
Copy link

Same issue.
working in win10.

@slhck
Copy link

slhck commented Jun 20, 2019

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.

slhck added a commit to slhck/vue-cli that referenced this issue Jun 20, 2019
This should revert the upstream bug identified here: SBoudrias/Inquirer.js#811
@aa1143
Copy link

aa1143 commented Jun 20, 2019

Same issue.

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

the same question!

@Livan-pro
Copy link

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

@AdenSTL
Copy link

AdenSTL commented Jun 21, 2019

LInux user :Ubuntu 18.04LTS
@xlivan
I ran command:

cd "$(vuetest $(2.9.6))/node_modules/@vue/cli-init"

vuestest is the name of my directory and vue version is 2.9.6 ,node version 8.0.0.

Output is:

2.9.6: command not found
vuetest: command not found
bash: cd: /node_modules/@vue/cli-init: No such file or directory

Even if i just ran:

cd "$(dirname $(which vue))/node_modules/@vue/cli-init"

Output is:

bash: cd: /home/adenstl/.yarn/bin/node_modules/@vue/cli-init: No such file or directory

Before this I have ran

sudo npm install
sudo npm install -g @vue/cli

Link to my package.json
https://github.com/AdenSTL/stackoverflow-errors/blob/master/package.json

Please help.
Thanks.

@haoqunjiang
Copy link
Member

Fixed in [email protected]
Now please try to clean your npm/yarn cache and reinstall @vue/cli @vue/cli-init

@Livan-pro
Copy link

@AdenSTL, sorry, didn't saw your question earlier. But problem already fixed, so just do npm i -g @vue/cli @vue/cli-init.
Regarding question, you should run commands exactly as I provided in previous message. And, I think, you are getting error

No such file or directory

because you're using yarn and it has different path for global node_modules.

@nlesyuk
Copy link

nlesyuk commented Jun 21, 2019

Hi @xlivan I put in PowerShell this command
cd "$(Split-Path $(whereis vue)[0] -Parent)\node_modules\@vue\cli-init"
and receive error http://prntscr.com/o4ywht .

Short text about error:

whereis : The term 'whereis' is not recognized as the name of a cmdlet, ...

Also when I replace whereis to which error appear too

Can you provide more informative instruction to resolve this issue?
thank you a lot!

@nlesyuk
Copy link

nlesyuk commented Jun 21, 2019

@xlivan I resolve it by making update npm(to 6.9.0) and node (10.16.0).
Thank you a lot!

@ghost
Copy link

ghost commented Jun 24, 2019

Im still stuck at project description

@nlesyuk
Copy link

nlesyuk commented Jun 24, 2019

Im still stuck at project description

What I did:

  1. update npm , nodejs
  2. installed npm install -g @vue/cli @vue/cli-init - it is latest version instaled
  3. try again vue webpack-simple vue-project

it works for me

@ghost
Copy link

ghost commented Jun 24, 2019

Im still stuck at project description

What I did:

  1. update npm , nodejs
  2. installed npm install -g @vue/cli @vue/cli-init - it is latest version instaled
  3. try again vue webpack-simple vue-project

it works for me

Does this also work with nativescript-vue?

BTW thank you for your reply

@nlesyuk
Copy link

nlesyuk commented Jun 24, 2019

Im still stuck at project description

What I did:

  1. update npm , nodejs
  2. installed npm install -g @vue/cli @vue/cli-init - it is latest version instaled
  3. try again vue webpack-simple vue-project

it works for me

Does this also work with nativescript-vue?

BTW thank you for your reply

I don't know about nativescript-vue, because I develop on vue.js (web only)

@geekhybrid
Copy link

Update vue

Run with npm install npm@latest -g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants