mirror of
https://gitee.com/RubyMetric/nvm-cn.git
synced 2025-12-25 20:02:45 +00:00
Change location
This commit is contained in:
parent
b3e5539fa4
commit
e5db9c968b
|
|
@ -31,7 +31,7 @@ stages:
|
||||||
displayName: 安装
|
displayName: 安装
|
||||||
rubyVersion: 3.0.2
|
rubyVersion: 3.0.2
|
||||||
commands:
|
commands:
|
||||||
- bash -c "$(curl -fsSL https://gitee.com/RubyKids/nvm-cn/raw/main/install.sh)"
|
- bash -c "$(curl -fsSL https://gitee.com/RubyMetric/nvm-cn/raw/main/install.sh)"
|
||||||
- ''
|
- ''
|
||||||
- ''
|
- ''
|
||||||
- ''
|
- ''
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,16 @@
|
||||||
|
|
||||||
- `<2023-05-01>` 此仓库现在切换使用Gitee官方管理的`nvm`镜像,每日更新,最多只比上游晚一天。因此现在不再需要依赖我手动更新。(我已为此手动更新两年,至少每两周一次)
|
- `<2023-05-01>` 此仓库现在切换使用Gitee官方管理的`nvm`镜像,每日更新,最多只比上游晚一天。因此现在不再需要依赖我手动更新。(我已为此手动更新两年,至少每两周一次)
|
||||||
|
|
||||||
- `<2022-11-07>` 此仓库最开始只是方便我自己临时使用,跟随[RubyKids]的其他项目一起公开出来了。但目前我很少使用NodeJS,对其生态不是很熟悉,如果出现bug,issue,希望您可以参与帮助。此仓库**2022年全年有2000+个独立IP访问,您的参与将会使很多人受益**。如果您愿意长时间维护这个项目,请联系我,我将很乐意为你打开相关权限。[RubyKids]里的其他项目也非常乐意接受维护,如果您认同[Woody's voice box哲学(请参考RubyKids的介绍)](https://gitee.com/RubyKids),您可以申请加入该组织,并分享相关的项目于组织中。
|
- `<2022-11-07>` 此仓库最开始只是方便我自己临时使用,跟随[RubyMetric]的其他项目一起公开出来了。但目前我很少使用NodeJS,对其生态不是很熟悉,如果出现bug,issue,希望您可以参与帮助。此仓库**2022年全年有2000+个独立IP访问,您的参与将会使很多人受益**。如果您愿意长时间维护这个项目,请联系我,我将很乐意为你打开相关权限。[RubyMetric]里的其他项目也非常乐意接受维护,如果您认同[Woody's voice box哲学(请参考RubyMetric的介绍)](https://gitee.com/RubyMetric),您可以申请加入该组织,并分享相关的项目于组织中。
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
`bash -c "$(curl -fsSL https://gitee.com/RubyKids/nvm-cn/raw/main/install.sh)"`
|
`bash -c "$(curl -fsSL https://gitee.com/RubyMetric/nvm-cn/raw/main/install.sh)"`
|
||||||
|
|
||||||
## 卸载
|
## 卸载
|
||||||
`bash -c "$(curl -fsSL https://gitee.com/RubyKids/nvm-cn/raw/main/uninstall.sh)"`
|
`bash -c "$(curl -fsSL https://gitee.com/RubyMetric/nvm-cn/raw/main/uninstall.sh)"`
|
||||||
|
|
||||||
|
|
||||||
## 使用
|
## 使用
|
||||||
|
|
@ -52,4 +52,4 @@ npm config ls
|
||||||
npm config set registry https://registry.npmmirror.com
|
npm config set registry https://registry.npmmirror.com
|
||||||
```
|
```
|
||||||
|
|
||||||
[RubyKids]: https://gitee.com/RubyKids
|
[RubyMetric]: https://gitee.com/RubyMetric
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ fi
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm" && (
|
export NVM_DIR="$HOME/.nvm" && (
|
||||||
echo "=> Git clone nvm"
|
echo "=> Git clone nvm"
|
||||||
git clone https://gitee.com/RubyKids/nvm-official "$NVM_DIR" # 备用仓库
|
git clone https://gitee.com/RubyMetric/nvm-official "$NVM_DIR" # 备用仓库
|
||||||
# git clone https://gitee.com/mirrors_nvm-sh/nvm "$NVM_DIR" # Gitee提供的追踪上游仓库
|
# git clone https://gitee.com/mirrors_nvm-sh/nvm "$NVM_DIR" # Gitee提供的追踪上游仓库
|
||||||
cd "$NVM_DIR"
|
cd "$NVM_DIR"
|
||||||
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
|
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
|
||||||
|
|
@ -55,7 +55,7 @@ echo "export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node" >> ~/.bas
|
||||||
echo "export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node" >> ~/.zshrc
|
echo "export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node" >> ~/.zshrc
|
||||||
|
|
||||||
echo "=> 安装nvm-update,升级更新请使用该命令"
|
echo "=> 安装nvm-update,升级更新请使用该命令"
|
||||||
curl -fsSL https://gitee.com/RubyKids/nvm-cn/raw/main/nvm-update.sh -o nvm-update.sh
|
curl -fsSL https://gitee.com/RubyMetric/nvm-cn/raw/main/nvm-update.sh -o nvm-update.sh
|
||||||
chmod +x ./nvm-update.sh
|
chmod +x ./nvm-update.sh
|
||||||
|
|
||||||
if ! [ -v NVM_CN_IN_CI ];then
|
if ! [ -v NVM_CN_IN_CI ];then
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
# nvm-update:
|
# nvm-update:
|
||||||
#
|
#
|
||||||
# Update your nvm and Node.js versions
|
# Update your nvm and Node.js versions
|
||||||
# See: https://gitee.com/RubyKids/nvm-cn
|
# See: https://gitee.com/RubyMetric/nvm-cn
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue