cnpm timeout 错误

张映 发表于 2019-07-05

分类目录: nodejs/vue/js/jquery

标签:, ,

headers: {}
at Timeout._onTimeout (/usr/lib/node_modules/cnpm/node_modules/urllib/lib/urllib.js:855:15)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
Get /bug-versions/latest from https://registry.npm.taobao.org error: ConnectionTimeoutError: Connect timeout for 5000ms

解决办法:

# vim /usr/lib/node_modules/cnpm/node_modules/urllib/lib/urllib.js

exports.TIMEOUT = ms('25s');  //5秒改25秒
exports.TIMEOUTS = [ms('25s'), ms('25s')];  //5秒改25秒

 



转载请注明
作者:海底苍鹰
地址:http://blog.51yip.com/jsjquery/2148.html

相关文章

    • 暂无相关日志