# 镜像
# npm镜像
# 原始镜像
https://registry.npmjs.org/
# 淘宝
https://npm.taobao.org => https://npmmirror.com
https://registry.npm.taobao.org => https://registry.npmmirror.com
1
2
3
4
5
2
3
4
5
cnpm使用
npm install -g cnpm --registry=https://registry.npmmirror.com
1
# npm包下载
一般在nvm下载失败时手动下载替换
https://registry.npmmirror.com/binary.html?path=npm/
https://github.com/npm/cli/releases
1
2
2
下载解压并重命名为npm
,放置到 path/nvm/${version}/node_modules
,并把npm/bin下的npm
、npm.cmd
、npx
、npx.cmd
复制放到path/nvm/${version}
下