From 8ab46d97a073ebbb86a40e5cec9174323975143f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=B0=8Fo?= Date: Tue, 21 Dec 2021 16:26:06 +0800 Subject: [PATCH] Update installation.md --- docs/chapter1/installation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/chapter1/installation.md b/docs/chapter1/installation.md index fa347ee..ce99110 100644 --- a/docs/chapter1/installation.md +++ b/docs/chapter1/installation.md @@ -26,11 +26,11 @@ ?> 解压,进入工程目录, 通过这种运行, `app.json`可以配置域名代理,解决移动端调试的跨域问题. 生成的`dist`目录为最终要打包的目录, `src`目录保持源文件的方式. -第1种, 通过npm, (安装较慢) +第1种, 通过npm ```bash -# 安装依赖 -$ npm install +# 安装依赖(使用淘宝源会更快) +$ npm install --registry=https://registry.npm.taobao.org # 运行服务 $ npm run dev ```