I am trying to create a project which Vue-cli through Git bash Window.
Git version 2.14.1.windows.1
Vue version 3.0.0-rc.3
For some reason the cursor is still visible during installation.
And when I press any arrow key, the option does not change, only the cursor move around. (However, pressing enter still process me to the next step).
Searching for a solution with google does not let me anywhere, only a few Github bug report: https://github.com/vuejs/vue-devtools/issues/283
When in Git bash and prompted for an answer by arrow key selection. You have to first type '>' and look at what line it typed on(usually the first line). The goal is to get that greater than symbol on the current line selected. In my case I had to press the down arrow to get it on the 'apps' selection line.
vue create You must launch the command as winpty vue. cmd create hello-world . If you however want to still use the vue create hello-world syntax, you can alias the command by adding the following line to your ~/. bashrc file.
Here's a CTRL+C and CTRL+V
step-by-step practical solution to solve this. The fact that you have this trouble means you are on Windows and you most likely use Git Bash.
echo 'alias vue="winpty vue.cmd"' >> ~/.bashrc
.bashrc
, and instead append the text on the left of >>
If you're looking for "Why do I have to add such thing to .bashrc
?", I think another user has mentioned that. If you found this helpful please upvote it so others can see it too.
You can try to make a file .bashrc
in your current <UserNameProfile>
.
Then, inside of it use your favourite text editor and write
alias vue='winpty vue.cmd'
Then restart your bash. And you should be able to use vue
as it should be on the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With