使用Git Bash运行vue create hello-world不能使用上下键

在vue cli的官方网上给出了这个问题的解决方案:
https://cli.vuejs.org/zh/guide/creating-a-project.html#vue-create

vue cli官网解决方案.png

方法1:使用winpty vue.cmd create hello-world代替 vue create hello-world。
方法2:在~/.bashrc文件中添加一句alias vue='winpty vue.cmd',重启Git Bash运行vue create hello-world就能正常使用上下键了。

你可能感兴趣的:(使用Git Bash运行vue create hello-world不能使用上下键)