mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-05 22:08:48 -06:00
docs(zh): add hints for bash alias on windows (#3231) [ci skip]
This commit is contained in:
@@ -9,7 +9,9 @@ vue create hello-world
|
||||
```
|
||||
|
||||
::: warning 警告
|
||||
如果你在 Windows 上通过 minTTY 使用 Git Bash,交互提示符并不工作。你必须通过 `winpty vue.cmd create hello-world` 启动这个命令。
|
||||
如果你在 Windows 上通过 minTTY 使用 Git Bash,交互提示符并不工作。你必须通过 `winpty vue.cmd create hello-world` 启动这个命令。不过,如果你仍想使用 `vue create hello-world`,则可以通过在 `~/.bashrc` 文件中添加以下行来为命令添加别名。
|
||||
`alias vue='winpty vue.cmd'`
|
||||
你需要重新启动 Git Bash 终端会话以使更新后的 bashrc 文件生效。
|
||||
:::
|
||||
|
||||
你会被提示选取一个 preset。你可以选默认的包含了基本的 Babel + ESLint 设置的 preset,也可以选“手动选择特性”来选取需要的特性。
|
||||
|
||||
Reference in New Issue
Block a user