Instantly share code, notes, and snippets.

What would you like to do?
npm 淘宝镜像配置
npm set registry # 注册模块镜像
npm set disturl # node-gyp 编译依赖的 node 源码镜像
## 以下选择添加
npm set sass_binary_site # node-sass 二进制包镜像
npm set electron_mirror # electron 二进制包镜像
npm set puppeteer_download_host # puppeteer 二进制包镜像
npm set chromedriver_cdnurl # chromedriver 二进制包镜像
npm set operadriver_cdnurl # operadriver 二进制包镜像
npm set phantomjs_cdnurl # phantomjs 二进制包镜像
npm set selenium_cdnurl # selenium 二进制包镜像
npm set node_inspector_cdnurl # node-inspector 二进制包镜像
npm cache clean --force # 清空缓存

This comment has been minimized.

weilao commented Jan 24, 2017


npm set selenium_cdnurl=
npm set node_inspector_cdnurl=

This comment has been minimized.

liril-net commented Jul 10, 2018

使用 npm cache verify 会不会更好一点?


This comment has been minimized.

haoxi911 commented Oct 27, 2018

npm cache verify 没用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment