Skip to content

国内镜像

NPM 镜像

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

.npmrc

bash
# puppeteer 下载镜像
PUPPETEER_DOWNLOAD_BASE_URL=https://registry.npmmirror.com/binary.html?path=chrome-for-testing/

# electron 下载镜像
electron_mirror=https://npmmirror.com/mirrors/electron/