Node.js 设置vue应用程序时出现其他警告ECONREET

Node.js 设置vue应用程序时出现其他警告ECONREET,node.js,npm,vue.js,Node.js,Npm,Vue.js,我正在尝试通过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, r

我正在尝试通过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

仍然有同样的问题。

手动将https更改为http

npm config set registry="http://registry.npmjs.org/"
npm config set strict-ssl false
如果您支持代理,请忽略此项

npm config set proxy http://username:password@10.80.81.180:80
npm config set https-proxy http://username:password@10.80.81.180:80
安装vue cli

npm install -g vue-cli
安装vuejs项目

vue-init webpack-simple vueproject
安装依赖项

npm install
现在,vuejs样板文件项目设置已完成

更新#1

首先清除npm缓存,然后尝试上述步骤

npm cache clear --force

您的机器支持代理吗?在家工作,使用本地互联网提供商如何检查?那么您没有任何代理设置。验证我的答案是否解决了您的问题您可以试试这个来检查您是否支持proxy@Damien您是否遵循了所有步骤?是的,我遵循了,并且在控制台中仍然有相同的输出,如上面的$node-v8.9.4$npm-v5.2。0@Damien创建一个新的项目目录,并尝试这些步骤。我做了你所说的一切仍然是相同的问题