docs: add option to use yarn instead of npm (#3160) [ci skip]

This commit is contained in:
Stefane Fermigier
2019-01-11 17:35:40 +01:00
committed by Haoqun Jiang
parent 6d5cbdb479
commit e401a81054

View File

@@ -4,6 +4,8 @@ You can rapidly prototype with just a single `*.vue` file with the `vue serve` a
``` bash
npm install -g @vue/cli-service-global
# or
yarn global add @vue/cli-service-global
```
The drawback of `vue serve` is that it relies on globally installed dependencies which may be inconsistent on different machines. Therefore this is only recommended for rapid prototyping.