1、at process._tickCallback (internal/process/next_tick.js:188:7)  npm ERR! message: 'request to https://registry.npm.taobao.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1080',

1)报错信息大概如下:

 E:\WebStormFile\labSystem>npm i -g vue-cli
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npm.taobao.org/vue-cli failed, reason:
connect ECONNREFUSED 127.0.0.1:1080
npm ERR! at ClientRequest.req.on.err (E:\ProgramFiles\nodejs\node_modules\npm\node_
modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:
68:14)
npm ERR! at emitOne (events.js:116:13)
npm ERR! at ClientRequest.emit (events.js:211:7)
npm ERR! at onerror (E:\ProgramFiles\nodejs\node_modules\npm\node_modules\pacote\no
de_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\ind
ex.js:106:9)
npm ERR! at callbackError (E:\ProgramFiles\nodejs\node_modules\npm\node_modules\pac
ote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-ba
se\index.js:126:5)
npm ERR! at <anonymous>
npm ERR! at process._tickCallback (internal/process/next_tick.js:188:7)
npm ERR! { FetchError: request to https://registry.npm.taobao.org/vue-cli failed, reas
on: connect ECONNREFUSED 127.0.0.1:1080
npm ERR! at ClientRequest.req.on.err (E:\ProgramFiles\nodejs\node_modules\npm\node_
modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:
68:14)
npm ERR! at emitOne (events.js:116:13)
npm ERR! at ClientRequest.emit (events.js:211:7)
npm ERR! at onerror (E:\ProgramFiles\nodejs\node_modules\npm\node_modules\pacote\no
de_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-base\ind
ex.js:106:9)
npm ERR! at callbackError (E:\ProgramFiles\nodejs\node_modules\npm\node_modules\pac
ote\node_modules\make-fetch-happen\node_modules\https-proxy-agent\node_modules\agent-ba
se\index.js:126:5)
npm ERR! at <anonymous>
npm ERR! at process._tickCallback (internal/process/next_tick.js:188:7)
npm ERR! message: 'request to https://registry.npm.taobao.org/vue-cli failed, reason:
connect ECONNREFUSED 127.0.0.1:1080',
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED',
npm ERR! stack: 'FetchError: request to https://registry.npm.taobao.org/vue-cli faile
d, reason: connect ECONNREFUSED 127.0.0.1:1080\n at ClientRequest.req.on.err (E:\\Pr
ogramFiles\\nodejs\\node_modules\\npm\\node_modules\\pacote\\node_modules\\make-fetch-h
appen\\node_modules\\node-fetch-npm\\src\\index.js:68:14)\n at emitOne (events.js:11
6:13)\n at ClientRequest.emit (events.js:211:7)\n at onerror (E:\\ProgramFiles\\n
odejs\\node_modules\\npm\\node_modules\\pacote\\node_modules\\make-fetch-happen\\node_m
odules\\https-proxy-agent\\node_modules\\agent-base\\index.js:106:9)\n at callbackEr
ror (E:\\ProgramFiles\\nodejs\\node_modules\\npm\\node_modules\\pacote\\node_modules\\m
ake-fetch-happen\\node_modules\\https-proxy-agent\\node_modules\\agent-base\\index.js:1
26:5)\n at <anonymous>\n at process._tickCallback (internal/process/next_tick.js:
188:7)' }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in:
npm ERR! E:\ProgramFiles\nodejs\node_cache\_logs\2019-11-20T07_33_07_386Z-debug.log

2)原因:npm配置了代理(可以使用"  npm config list -l  "命令查看npm配置)

 E:\WebStormFile\labSystem>npm config list -l
; cli configs
long = true
metrics-registry = "https://registry.npm.taobao.org/"
scope = ""
user-agent = "npm/5.6.0 node/v8.11.3 win32 x64" ; userconfig C:\Users\25392\.npmrc
cache = "E:\\ProgramFiles\\nodejs\\node_cache"
cacheE:\ProgramFiles\nodejs\node_cache = ""
home = "https://www.npmjs.org"
https-proxy = "http://127.0.0.1:1080/"
prefix = "E:\\ProgramFiles\\nodejs\\node_global"
prefixE:\ProgramFiles\nodejs\node_cache = ""
prefixE:\ProgramFiles\nodejs\node_global = ""
proxy = null
registry = "https://registry.npm.taobao.org/" ; default values
access = null
allow-same-version = false
also = null
always-auth = false
auth-type = "legacy"
bin-links = true
browser = null
ca = null
; cache = "C:\\Users\\25392\\AppData\\Roaming\\npm-cache" (overridden)
cache-lock-retries = 10
cache-lock-stale = 60000
cache-lock-wait = 10000
cache-max = null
cache-min = 10
cafile = undefined
cert = null
cidr = null
color = true
commit-hooks = true
depth = null
description = true
dev = false
dry-run = false
editor = "notepad.exe"
engine-strict = false
fetch-retries = 2
fetch-retry-factor = 10
fetch-retry-maxtimeout = 60000
fetch-retry-mintimeout = 10000
force = false
git = "git"
git-tag-version = true
global = false
global-style = false
globalconfig = "E:\\ProgramFiles\\nodejs\\node_global\\etc\\npmrc"
globalignorefile = "E:\\ProgramFiles\\nodejs\\node_global\\etc\\npmignore"
group = 0
ham-it-up = false
heading = "npm"
; https-proxy = null (overridden)
if-present = false
ignore-prepublish = false
ignore-scripts = false
init-author-email = ""
init-author-name = ""
init-author-url = ""
init-license = "ISC"
init-module = "C:\\Users\\25392\\.npm-init.js"
init-version = "1.0.0"
json = false
key = null
legacy-bundling = false
link = false
local-address = undefined
loglevel = "notice"
logs-max = 10
; long = false (overridden)
maxsockets = 50
message = "%s"
; metrics-registry = null (overridden)
node-options = null
node-version = "8.11.3"
offline = false
onload-script = null
only = null
optional = true
otp = 0
package-lock = true
package-lock-only = false
parseable = false
prefer-offline = false
prefer-online = false
; prefix = "E:\\ProgramFiles\\nodejs" (overridden)
production = false
progress = true
proxy = null
read-only = false
rebuild-bundle = true
; registry = "https://registry.npmjs.org/" (overridden)
rollback = true
save = true
save-bundle = false
save-dev = false
save-exact = false
save-optional = false
save-prefix = "^"
save-prod = false
scope = ""
script-shell = null
scripts-prepend-node-path = "warn-only"
searchexclude = null
searchlimit = 20
searchopts = ""
searchstaleness = 900

3)使用" npm config delete https-proxy "命令删除配置  (https-proxy = "http://127.0.0.1:1080/")就可以正常下载啦

2、

vue创建项目配置脚手架vue-cli环境出错的更多相关文章

  1. Vue创建项目配置

    前言 安装VS Code,开始vue的学习及编程,但是总是遇到各种各样的错误,控制台语法错误,格式错误.一股脑的袭来,感觉创建个项目怎么这个麻烦.这里就讲一下vue的安装及创建. 安装环境 当然第一步 ...

  2. redis数据库-VUE创建项目

    redis数据库 ''' 关系型数据库: mysql, oracle 非关系型数据库(nosql): redis,mongodb (没有表的概念) key-value mongodb: json 数据 ...

  3. VUE前端项目配置代理解决跨域问题

    VUE前端项目配置代理解决跨域问题 问题如下,经常在本地调试接口出现这种问题 解决方式1:Chrome 的扩展插件 以前使用Chrome 的扩展插件,但是有时候还是会出现莫名其妙的问题. 需要梯子才行 ...

  4. vue-cli生成的项目配置开发和生产环境不同的接口

    vue-cli生成的项目,vue项目配置了不同开发环境的接口地址,axios.defaults.baseURL如何引用这个地址,这是在我发布项目的时候考虑的,于是想到了 方法一: config下配置文 ...

  5. vsCode怎么为一个前端项目配置ts的运行环境

    vsCode为一个前端项目配置ts的运行环境,ts文件保存的时候自动编译成js文件: 假设此前端项目名称为Web:文件结构如图 1. 在根目录中新建一个“.vscode”文件夹,里面建一个“tasks ...

  6. Vue创建项目环境

    目录 Vue项目环境搭建 Vue项目创建 pycharm配置并启动vue项目 vue项目目录结构分析 vue组件(.vue文件) 全局脚本文件main.js(项目入口) 改写 Vue项目环境搭建 &q ...

  7. VUE创建项目

    Vue Cli项目搭建     vue项目需要自建服务器:node 什么是node: 用C++语言编写,用来运行JavaScript语言 node可以为前端项目提供server (包含了socket) ...

  8. vue cli3 项目配置

    [转]https://juejin.im/post/5c63afd56fb9a049b41cf5f4 基于vue-cli3.0快速构建vue项目 本章详细介绍使用vue-cli3.0来搭建项目. 本章 ...

  9. Vue+webpack项目配置便于维护的目录结构

    新建项目的时候创建合理的目录结构便于后期的维护是很重要 环境:vue.webpack 目录结构: 项目子目录结构 子目录结构都差不多,主要目录是在src下面操作 src目录结构 src/common ...

随机推荐

  1. 容器适配器————queue

    只能访问 queue<T> 容器适配器的第一个和最后一个元素.只能在容器的末尾添加新元素,只能从头部移除元素. 操作 queue<int> q;//创建一个int型的空队列q ...

  2. 关于SSD和YOLO对小目标的思考

    所谓的小目标,要看是绝对小目标(像素),和相对小目标(相对原图的长宽来看的).大目标小目标只跟receptive field(感受野)有关,cnn本身可以检测任何尺度的物体.ssd对小目标检测不太适用 ...

  3. Flume的断点续传解决

    根据需求,首先定义以下3大要素 采集源,即source——监控文件内容更新 :  exec  ‘tail -F file’ 下沉目标,即sink——HDFS文件系统  :  hdfs sink Sou ...

  4. (转)python selenium-webdriver 元素操作之鼠标和键盘事件

    参考资料:https://blog.csdn.net/zh175578809/article/details/76767748 参考资料2:https://blog.csdn.net/qq_41817 ...

  5. JDK中String类的源码分析(一)

    1.String类是final的,不允许被继承 /** The value is used for character storage. */ private final char value[]; ...

  6. DjangoRESTFrameWork中的视图

    DRF中的request 在Django REST Framework中内置的Request类扩展了Django中的Request类,实现了很多方便的功能--如请求数据解析和认证等. 比如,区别于Dj ...

  7. 在xml文件中使用该控件

    <yf.changsha.com.view.MyTextView android:layout_width="match_parent" android:layout_hei ...

  8. bash脚本计算某程序的进程数

    脚本里面有时候需要判断某个程序是否启动,以及有几个进程下面用nginx来做实例 显示所有的nignx进程 ps -ef|grep nginx |grep -v grep 其中grep -v grep表 ...

  9. VBA通过C#以API方式调用JS脚本函数

    http://www.cnblogs.com/Charltsing/p/JSDotNetAPI.html 在网页采集中,很多时候需要运行网站下载的某个js文件中的函数,以计算Request参数.VBA ...

  10. WPF SAP水晶报表例子和打包Setup

    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x=" ...