Skip to content

Commit

Permalink
update mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Aug 28, 2019
1 parent 5941276 commit e26c105
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/development/pkg_source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@

添加mirror节点到settings.xml里的mirrors即可。比如 ::

<mirror>
<id>tencent-cloud</id>
<mirrorOf>central</mirrorOf>
<name>Tencent Cloud Mirror.</name>
<url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url>
</mirror>

<mirror>
<id>aliyun</id>
<mirrorOf>central</mirrorOf>
Expand Down Expand Up @@ -68,6 +75,7 @@
::

npm config set registry "http://registry.npmjs.org/"
npm config set registry https://mirrors.tencent.com/npm/
npm config set registry https://registry.npm.taobao.org/
npm install -g cnpm --registry=https://registry.npm.taobao.org

Expand Down

0 comments on commit e26c105

Please sign in to comment.