Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update https://registry.npm.taobao.org to https://registry.npmmirror.com #116

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/reference/jenkins_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
# 查看版本信息
npm -v
# 解决存放在Github上的sass无法下载的问题
SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ npm install node-sass
SASS_BINARY_SITE=https://npmmirror.com/mirrors/node-sass/ npm install node-sass
# 将镜像源替换为淘宝的加速访问
npm config set registry https://registry.npm.taobao.org
npm config set registry https://registry.npmmirror.com
# 安装项目依赖
npm install
# 项目打包
Expand Down Expand Up @@ -103,9 +103,9 @@ echo '----start nginx----'

```bash
# linux
SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ npm install node-sass
SASS_BINARY_SITE=https://npmmirror.com/mirrors/node-sass/ npm install node-sass
# window
set SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass&& npm install node-sass
set SASS_BINARY_SITE=https://npmmirror.com/mirrors/node-sass&& npm install node-sass
```

### 有些依赖无法下载导致构建失败
Expand All @@ -114,7 +114,7 @@ set SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass&& npm install node

```bash
# 设置为淘宝的镜像源
npm config set registry https://registry.npm.taobao.org
npm config set registry https://registry.npmmirror.com
# 设置为官方镜像源
npm config set registry https://registry.npmjs.org
```
Expand Down