Skip to content

Instantly share code, notes, and snippets.

@chisaato
Last active July 11, 2023 17:58
Show Gist options
  • Save chisaato/4e4db24b80fcebb3b3f61129dbf85c8c to your computer and use it in GitHub Desktop.
Save chisaato/4e4db24b80fcebb3b3f61129dbf85c8c to your computer and use it in GitHub Desktop.
Volta.sh 使用 Hooks 实现镜像站
{
"node": {
"index": {
"prefix": "https://npmmirror.com/mirrors/node/"
},
"distro": {
"template": "https://registry.npmmirror.com/-/binary/node/v{{version}}/{{filename}}"
}
},
"npm": {
"index": {
"prefix": "https://registry.npmmirror.com/"
},
"distro": {
"template": "https://registry.npmmirror.com/npm/-/{{filename}}"
}
},
"yarn": {
"index": {
"prefix": "https://registry.npmmirror.com/"
},
"distro": {
"template": "https://registry.npmmirror.com/@yarnpkg/cli-dist/-/cli-dist-{{version}}.tgz"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment