vue脚手架阿里云镜像错误记录
C:\Users\Administrator>d:
D:\>cd D:\App\vue
D:\App\vue>node -v
v14.4.0
D:\App\vue>npm -v
6.14.5
D:\App\vue>npm install --registry=https://registry.npm.taobao.org
npm WARN saveError ENOENT: no such file or directory, open 'D:\App\vue\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'D:\App\vue\package.json'
npm WARN vue No description
npm WARN vue No repository field.
npm WARN vue No README data
npm WARN vue No license field.
up to date in 1.393s
D:\App\vue>npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help init` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (vue) hell
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to D:\App\vue\package.json:
{
"name": "hell",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
Is this OK? (yes) y
D:\App\vue>npm install
npm WARN hell@1.0.0 No description
npm WARN hell@1.0.0 No repository field.
up to date in 1.143s
D:\App\vue>npm install vue-cli -g
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://registry.cnpmjs.org/vue-cli failed, reason: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T10_25_21_076Z-debug.log
D:\App\vue>
D:\App\vue>npm config set proxy null
D:\App\vue>
D:\App\vue>npm config set https-proxy null
D:\App\vue>npm config get proxy
null
D:\App\vue>npm comfig get http-proxy
Usage: npm <command>
where <command> is one of:
access, adduser, audit, bin, bugs, c, cache, ci, cit,
clean-install, clean-install-test, completion, config,
create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
edit, explore, fund, get, help, help-search, hook, i, init,
install, install-ci-test, install-test, it, link, list, ln,
login, logout, ls, org, outdated, owner, pack, ping, prefix,
profile, prune, publish, rb, rebuild, repo, restart, root,
run, run-script, s, se, search, set, shrinkwrap, star,
stars, start, stop, t, team, test, token, tst, un,
uninstall, unpublish, unstar, up, update, v, version, view,
whoami
npm <command> -h quick help on <command>
npm -l display full usage info
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file:
C:\Users\Administrator\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@6.14.5 D:\Program Files\nodejs\node_modules\npm
Did you mean this?
config
D:\App\vue>npm config set https-proxy null
D:\App\vue>npm config get https-proxy
null
D:\App\vue>npm config set http-proxy
D:\App\vue>npm config set http-proxy null
D:\App\vue>npm config get http-proxy
null
D:\App\vue>npm config set registry http://registry.cnpmjs.org/
D:\App\vue>npm install vue-cli -g
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://registry.cnpmjs.org/vue-cli failed, reason: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T10_31_20_836Z-debug.log
D:\App\vue>
D:\App\vue>npm install vue-cli -g
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://registry.cnpmjs.org/vue-cli failed, reason: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T10_31_20_836Z-debug.log
D:\App\vue>npm install vue-cli -g
npm犯错!代码ECONNRESET
npm犯错!errno ECONNRESET
npm犯错!网络请求http://registry.cnpmjs.org/vue-cli失败,原因:读ECONNRESET
npm犯错!network这是一个与网络连接有关的问题。
npm犯错!在大多数情况下,您是在代理之后或有糟糕的网络设置。
npm犯错!网络
npm犯错!如果您是在代理后,请确保
npm犯错!网络“代理”配置已正确设置。参见:'npm帮助配置'
npm犯错!此运行的完整日志可在以下文件中找到:
npm犯错!C:\Users\管理员\ AppData \漫游\ npm-cache \ _logs \ 2022 - 01 - 05 - t10_31_20_836z debug.log

浙公网安备 33010602011771号