1. 提高 nvm-windows 下载 node.js 及 npm 的速度

1.1 在控制台修改镜像,使用淘宝镜像

nvm node_mirror http://npm.taobao.org/mirrors/node/ // 注意结尾有斜杠
nvm npm_mirror https://npm.taobao.org/mirrors/npm/

1.2. 手动修改 nvm 根目录下的 setting.txt 文件

添加两行:

node_mirror: http://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

2. 提高 npm 下载 node.js 模块的速度

$ npm install -g cnpm --registry=https://registry.npm.taobao.org
// 有时候这样仍然会失败,镜像并没有改变,可使用下面这条命令修改
$ npm config set registry https://registry.npm.taobao.org

然后即可使用 cnpm 替代 npm 来安装模块。

更多镜像可查看淘宝镜像链接

GitHub 加速计划 / nv / nvm-windows
758
16
下载
一个针对Windows平台的Node.js版本管理工具,是用Go语言编写的。
最近提交(Master分支:2 个月前 )
862ef44d Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 10 个月前
2d3757a9 Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2. - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 10 个月前
Logo

新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐