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. 【Leetcode】位1的个数

    解题方案:位操作的技巧 整数 n 和 n-1(n>0) 做与运算,从其二进制形式来看,可以消掉 n 的二进制数值中最后1个 “1” .循环进行,每次消掉1个 “1” .整数 n 的二进制数值中有 ...

  2. 人脸三维建模A Morphable Model For The Synthesis Of 3D Faces(三维人脸合成的变形模型)

    Abstract摘要 In this paper, a new technique for modeling textured 3D faces is introduced. 3D faces can ...

  3. jQuery_完成复选框的全选与全不选

    别的不多说,直接上代码,用于完成复选框的全选与全不选. <!DOCTYPE html> <html> <head> <meta charset="U ...

  4. vue.js 深度监测

    1.select 控件赋值改变,但是无法获取 解决方法,在监测时手动赋值新值 'model.UseType': { handler(newVal, oldVal) { $("#UseType ...

  5. No 'Configuration' method was found in class 'WebApp.Startup

    The following errors occurred while attempting to load the app.- No 'Configuration' method was found ...

  6. jenkins 打标签实现回滚

    背景介绍: 本项目代码存储在gitlab,再通过jenkins发布到对应的节点上. 使用tag控制版本:每一次成功的构建,jenkins会自动为gitlab的分支打上tag,版本更新可直接选择prod ...

  7. 大数据笔记(二十三)——Scala语言基础

    一.Scala简介:一种多范式的编程语言 (*)面向对象 (*)函数式编程:Scala的最大特点 (*)基于JVM 二.Scala的运行环境 (1)命令行:REPL 进入: scala 退出::qui ...

  8. 当遇到npm ERR! Unexpected end of JSON input while parsing near……时的解决办法

    运行npm install时有时会遇到以下错误: npm ERR! Unexpected end of JSON input while parsing near ... 这时可以先执行下面的命令: ...

  9. Js自定义数组map之bigmap

    /** * like map,but prev,curr,next and index will be given * @param {Function} cb Callback,the parame ...

  10. SQL Server CDC最佳实践

    企业核心业务系统oltp的数据需要通过ETL同步到数据仓库,原始的ETL流程通过定制化从SQL Server中进行数据抽取,经过生产环境的监控,发现ETL过程的query会对生产系统造成额外负载.于是 ...