From ce5daa7517826edff4ad25865906a71f23f817a8 Mon Sep 17 00:00:00 2001 From: ZhengJie <201507802@qq.com> Date: Mon, 25 May 2020 09:41:53 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E5=AE=8C=E5=96=84](v2.5):?= =?UTF-8?q?=20v2.5=20update=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b5884a2..2f19039 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ ELADMIN 前端源码 #### Build Setup ``` bash # 配置镜像加速 -npm config set registry https://registry.npm.taobao.org +https://www.ydyno.com/archives/1219.html # 安装依赖 npm install @@ -30,23 +30,12 @@ npm install npm run dev # 构建生产环境 -npm run build - -# 如果遇到 node-sass 安装慢,或者安装不了的问题,请查看 -- https://www.ydyno.com/archives/1219.html -- +npm run build:prod ``` #### 常见问题 -1、依赖安装失败 - -可通过配置淘宝的镜像源解决 -``` -npm config set registry https://registry.npm.taobao.org -``` - -2、linux 系统在安装依赖的时候会出现 node-sass 无法安装的问题 +1、linux 系统在安装依赖的时候会出现 node-sass 无法安装的问题 解决方案: ``` @@ -54,7 +43,7 @@ npm config set registry https://registry.npm.taobao.org 2. 直接使用:npm install --unsafe-perm ``` -3、加速node-sass安装 +2、加速node-sass安装 https://www.ydyno.com/archives/1219.html #### 反馈交流