Explorar el Código

更新 '.npmrc'

宾洪斌 hace 3 semanas
padre
commit
e53fdf41a2
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      .npmrc

+ 8 - 0
.npmrc

@@ -2,3 +2,11 @@ sass_binary_site=https://npm.taobao.org/mirrors/node-sass
 fse_binary_host_mirror=https://npm.taobao.org/mirrors/fsevents
 chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver
 phantomjs_cdnurl=https://npm.taobao.org/mirrors//phantomjs
+# 缓解 Linux 下 npm "cb() never called" 错误
+legacy-peer-deps=true
+maxsockets=1
+fetch-retries=2
+fetch-retry-mintimeout=20000
+fetch-retry-maxtimeout=120000
+fetch-timeout=120000
+prefer-offline=false