nvm npm n 2024 最新阿里源镜像

electron 阿里镜像

npm config set ELECTRON_MIRROR https://registry.npmmirror.com/-/binary/electron/

nvm 使用阿里镜像

export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node/

n 使用阿里镜像

export N_NODE_MIRROR=https://npmmirror.com/mirrors/node/

npm使用阿里源

npm i [package-name] --registry=https://registry.npmmirror.com

npm config set registry https://registry.npmmirror.com

yarn config set registry https://registry.npmmirror.com

yarn config delete registry


# 设置阿里镜像源(加速)

npm config set registry=https://registry.npmmirror.com

npm config set disturl=https://registry.npmmirror.com/-/binary/node

#如果下载electron慢,配置如下npm config set electron_mirror=https://registry.npmmirror.com/-/binary/electron/

参考自:

https://wolffn.github.io/docs/tools/shell/npm/

https://www.kaka996.com/pages/e64ff6/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容