|
@@ -8,7 +8,7 @@ hcny = 泓创 npm、yarn (h = 泓、c = 创、n = npm、 y = yarn)
|
|
|
|
|
|
```sh
|
|
|
|
|
|
-npm install -g hcny --registry http://47.110.251.215:9000/
|
|
|
+npm install -g hcny --registry http://39.108.216.210:9000/
|
|
|
|
|
|
```
|
|
|
|
|
@@ -28,13 +28,13 @@ hcny ls
|
|
|
# hprm ls
|
|
|
|
|
|
# 切换源
|
|
|
-hcny use hcxxy
|
|
|
-# hnrm use hcxxy
|
|
|
-# hyrm use hcxxy
|
|
|
-# hprm use hcxxy
|
|
|
+hcny use hc
|
|
|
+# hnrm use hc
|
|
|
+# hyrm use hc
|
|
|
+# hprm use hc
|
|
|
|
|
|
# 设置本地的 `.npmrc`
|
|
|
-hnrm use hcxxy -l
|
|
|
+hnrm use hc -l
|
|
|
|
|
|
#测试源的响应时间
|
|
|
hcny test
|
|
@@ -48,13 +48,13 @@ hcny test
|
|
|
```sh
|
|
|
|
|
|
#如果您使用 npm
|
|
|
-hnrm use hcxxy
|
|
|
+hnrm use hc
|
|
|
|
|
|
#如果您使用 yarn
|
|
|
-hyrm use hcxxy
|
|
|
+hyrm use hc
|
|
|
|
|
|
#如果您使用 pnpm
|
|
|
-hprm use hcxxy
|
|
|
+hprm use hc
|
|
|
|
|
|
```
|
|
|
|
|
@@ -109,7 +109,7 @@ hnrm remove example
|
|
|
- tencent ---- <https://mirrors.cloud.tencent.com/npm/>
|
|
|
- npmMirror -- <https://skimdb.npmjs.com/registry/>
|
|
|
- github ----- <https://npm.pkg.github.com/>
|
|
|
-- hcxxy ----- <http://47.110.251.215:9000/> (私有npm仓库源)
|
|
|
+- hc ----- <http://39.108.216.210:9000/> (私有npm仓库源)
|
|
|
|
|
|
|
|
|
## 如果你不想使用 hcny ,也可以自行修改 npm 或 yarn 的配置
|
|
@@ -120,19 +120,19 @@ hnrm remove example
|
|
|
```shell
|
|
|
|
|
|
#安装全部依赖
|
|
|
-npm install --registry http://47.110.251.215:9000/
|
|
|
+npm install --registry http://39.108.216.210:9000/
|
|
|
|
|
|
#安装某个依赖
|
|
|
-npm install 包名称 --registry http://47.110.251.215:9000/
|
|
|
+npm install 包名称 --registry http://39.108.216.210:9000/
|
|
|
|
|
|
#注册一个私有npm仓库账号,不发包的话,不需要注册
|
|
|
-npm adduser --registry http://47.110.251.215:9000/
|
|
|
+npm adduser --registry http://39.108.216.210:9000/
|
|
|
|
|
|
#登录到私有npm仓库,不发包的话,不需要登录
|
|
|
-npm login --registry http://47.110.251.215:9000/
|
|
|
+npm login --registry http://39.108.216.210:9000/
|
|
|
|
|
|
#发表到私有npm仓库,不发包的话,不需要推送
|
|
|
-npm publish --registry http://47.110.251.215:9000/
|
|
|
+npm publish --registry http://39.108.216.210:9000/
|
|
|
|
|
|
```
|
|
|
|
|
@@ -142,7 +142,7 @@ npm publish --registry http://47.110.251.215:9000/
|
|
|
```shell
|
|
|
|
|
|
#设置为私有npm仓库的镜像源
|
|
|
-yarn config set registry http://47.110.251.215:9000/
|
|
|
+yarn config set registry http://39.108.216.210:9000/
|
|
|
|
|
|
#设置为yarn官方的镜像源
|
|
|
yarn config set registry https://registry.yarnpkg.com/
|