【发布时间】:2018-06-23 15:04:14
【问题描述】:
我正在尝试通过 vue-cli 设置 vue 应用程序。在我输入之前一切都很顺利
npm install
安装依赖项。这是https的错误,所以我将其更改为http 但后来我得到了这个日志:
npm WARN registry Unexpected warning for http://registry.npmjs.org/: Miscellaneous Warning ECONNRESET: request to http://registry.npmjs.org/debug failed, reason: socket hang up
npm WARN registry Using stale package data from http://registry.npmjs.org/ due to a request error during revalidation.
我也用过
npm config rm proxy
npm config rm https-proxy
仍然有同样的问题。
【问题讨论】:
-
你的机器在代理后面吗?
-
在家工作,使用本地互联网提供商如何检查?
-
那么您没有任何代理设置。验证我的回答是否能解决您的问题
-
你可以试试这个来检查你是否在代理amibehindaproxy.com后面