From 5061010ac1b95ea0b2dbb9ca3b6fc850b4986c62 Mon Sep 17 00:00:00 2001 From: Elune <201507802@qq.com> Date: Sat, 7 Mar 2020 13:07:04 +0800 Subject: [PATCH] update README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 8224bbb..b5884a2 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ ELADMIN 前端源码 #### Build Setup ``` bash +# 配置镜像加速 +npm config set registry https://registry.npm.taobao.org + # 安装依赖 npm install @@ -28,8 +31,32 @@ npm run dev # 构建生产环境 npm run build + +# 如果遇到 node-sass 安装慢,或者安装不了的问题,请查看 +- https://www.ydyno.com/archives/1219.html +- ``` +#### 常见问题 + +1、依赖安装失败 + +可通过配置淘宝的镜像源解决 +``` +npm config set registry https://registry.npm.taobao.org +``` + +2、linux 系统在安装依赖的时候会出现 node-sass 无法安装的问题 + +解决方案: +``` +1. 单独安装:npm install --unsafe-perm node-sass +2. 直接使用:npm install --unsafe-perm +``` + +3、加速node-sass安装 + +https://www.ydyno.com/archives/1219.html #### 反馈交流 - QQ交流群:891137268 \ No newline at end of file