vue脚手架安装遇到的错误


C:\Users\Administrator>npm install --registry=https://registry.npm.taobao.org
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\Administrator\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 'C:\Users\Administrator\package.json'
npm WARN Administrator No description
npm WARN Administrator No repository field.
npm WARN Administrator No README data
npm WARN Administrator No license field.

up to date in 3.036s

C:\Users\Administrator>npm install vue-cli -g
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED'
npm ERR! }
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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T09_52_35_685Z-debug.log

C:\Users\Administrator>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.
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to C:\Users\Administrator\package.json:

{
"name": "administrator",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}


Is this OK? (yes)

C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>npm init -y
Wrote to C:\Users\Administrator\package.json:

{
"name": "administrator",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"keywords": [],
"description": ""
}

 

C:\Users\Administrator>npm install --registry=https://registry.npm.taobao.org
npm WARN administrator@1.0.0 No description
npm WARN administrator@1.0.0 No repository field.

up to date in 3.052s

C:\Users\Administrator>npm install vue-cli -g
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED'
npm ERR! }
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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T09_57_34_974Z-debug.log

license: (ISC)
About to write to C:\Users\Administrator\package.json:json file.
It only covers the most common items, and tries to guess sensible defaults.
{
"name": "administrator",finitive documentation on these fields
"version": "1.0.0", do.
"main": "index.js",
"scripts": {ll <pkg>` afterwards to install a package and
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "yms",me to quit.
"license": "ISC",
"keywords": [],
"description": ""
}


Is this OK? (yes) y

C:\Users\Administrator>npm install vue-cli -g
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED'
npm ERR! }
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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T10_01_53_314Z-debug.log

C:\Users\Administrator>npm install
npm WARN administrator@1.0.0 No description
npm WARN administrator@1.0.0 No repository field.

up to date in 3.037s

C:\Users\Administrator>npm -v
6.14.5

C:\Users\Administrator>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: (administrator)
version: (1.0.0)
description:
git repository:
license: (ISC)
About to write to C:\Users\Administrator\package.json:

{
"name": "administrator",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "yms",
"license": "ISC",
"keywords": [],
"description": ""
}


Is this OK? (yes) y

C:\Users\Administrator>npm uninstall vue-cli -g
up to date in 0.042s

C:\Users\Administrator>npm install vue-cli -g
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED'
npm ERR! }
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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T10_07_59_963Z-debug.log

C:\Users\Administrator>npm config get proxy
http://127.0.0.1:1087/

C:\Users\Administrator>npm config get http-proxy
http://127.0.0.1:1087

C:\Users\Administrator>
C:\Users\Administrator>npm config set proxy null

C:\Users\Administrator>npm config get proxy
null

C:\Users\Administrator>
C:\Users\Administrator>npm config set https-proxy null

C:\Users\Administrator>npm config get http-proxy
http://127.0.0.1:1087

C:\Users\Administrator>npm config get https-proxy
null

C:\Users\Administrator>npm config registry http://registry.cnpmjs.org/
npm ERR! Usage:
npm ERR! npm config set <key> <value>
npm ERR! npm config get [<key>]
npm ERR! npm config delete <key>
npm ERR! npm config list [--json]
npm ERR! npm config edit
npm ERR! npm set <key> <value>
npm ERR! npm get [<key>]
npm ERR!
npm ERR! alias: c

C:\Users\Administrator>npm config set registry http://registry.cnpmjs.org/

C:\Users\Administrator>npm config get proxy
null

C:\Users\Administrator>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_15_52_644Z-debug.log

C:\Users\Administrator>npm install
npm WARN administrator@1.0.0 No description
npm WARN administrator@1.0.0 No repository field.

up to date in 1.14s

C:\Users\Administrator>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: (administrator)
version: (1.0.0)
description:
git repository:
license: (ISC)
About to write to C:\Users\Administrator\package.json:

{
"name": "administrator",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "yms",
"license": "ISC",
"keywords": [],
"description": ""
}


Is this OK? (yes)

C:\Users\Administrator>npm install -g webpack
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://registry.cnpmjs.org/webpack 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_18_20_477Z-debug.log

C:\Users\Administrator>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


C:\Users\Administrator>npm install --registry=https://registry.npm.taobao.org
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\Administrator\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 'C:\Users\Administrator\package.json'
npm WARN Administrator No description
npm WARN Administrator No repository field.
npm WARN Administrator No README data
npm WARN Administrator No license field.

up to date in 3.036s

C:\Users\Administrator>npm install vue-cli -g
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED'
npm ERR! }
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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T09_52_35_685Z-debug.log

C:\Users\Administrator>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.
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to C:\Users\Administrator\package.json:

{
"name": "administrator",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}


Is this OK? (yes)

C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>npm init -y
Wrote to C:\Users\Administrator\package.json:

{
"name": "administrator",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"keywords": [],
"description": ""
}

 

C:\Users\Administrator>npm install --registry=https://registry.npm.taobao.org
npm WARN administrator@1.0.0 No description
npm WARN administrator@1.0.0 No repository field.

up to date in 3.052s

C:\Users\Administrator>npm install vue-cli -g
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED'
npm ERR! }
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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T09_57_34_974Z-debug.log

license: (ISC)
About to write to C:\Users\Administrator\package.json:json file.
It only covers the most common items, and tries to guess sensible defaults.
{
"name": "administrator",finitive documentation on these fields
"version": "1.0.0", do.
"main": "index.js",
"scripts": {ll <pkg>` afterwards to install a package and
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "yms",me to quit.
"license": "ISC",
"keywords": [],
"description": ""
}


Is this OK? (yes) y

C:\Users\Administrator>npm install vue-cli -g
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED'
npm ERR! }
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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T10_01_53_314Z-debug.log

C:\Users\Administrator>npm install
npm WARN administrator@1.0.0 No description
npm WARN administrator@1.0.0 No repository field.

up to date in 3.037s

C:\Users\Administrator>npm -v
6.14.5

C:\Users\Administrator>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: (administrator)
version: (1.0.0)
description:
git repository:
license: (ISC)
About to write to C:\Users\Administrator\package.json:

{
"name": "administrator",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "yms",
"license": "ISC",
"keywords": [],
"description": ""
}


Is this OK? (yes) y

C:\Users\Administrator>npm uninstall vue-cli -g
up to date in 0.042s

C:\Users\Administrator>npm install vue-cli -g
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1087
npm ERR! at ClientRequest.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at one rror (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (D:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED'
npm ERR! }
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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-01-05T10_07_59_963Z-debug.log

C:\Users\Administrator>npm config get proxy
http://127.0.0.1:1087/

C:\Users\Administrator>npm config get http-proxy
http://127.0.0.1:1087

C:\Users\Administrator>
C:\Users\Administrator>npm config set proxy null

C:\Users\Administrator>npm config get proxy
null

C:\Users\Administrator>
C:\Users\Administrator>npm config set https-proxy null

C:\Users\Administrator>npm config get http-proxy
http://127.0.0.1:1087

C:\Users\Administrator>npm config get https-proxy
null

C:\Users\Administrator>npm config registry http://registry.cnpmjs.org/
npm ERR! Usage:
npm ERR! npm config set <key> <value>
npm ERR! npm config get [<key>]
npm ERR! npm config delete <key>
npm ERR! npm config list [--json]
npm ERR! npm config edit
npm ERR! npm set <key> <value>
npm ERR! npm get [<key>]
npm ERR!
npm ERR! alias: c

C:\Users\Administrator>npm config set registry http://registry.cnpmjs.org/

C:\Users\Administrator>npm config get proxy
null

C:\Users\Administrator>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_15_52_644Z-debug.log

C:\Users\Administrator>npm install
npm WARN administrator@1.0.0 No description
npm WARN administrator@1.0.0 No repository field.

up to date in 1.14s

C:\Users\Administrator>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: (administrator)
version: (1.0.0)
description:
git repository:
license: (ISC)
About to write to C:\Users\Administrator\package.json:

{
"name": "administrator",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "yms",
"license": "ISC",
"keywords": [],
"description": ""
}


Is this OK? (yes)

C:\Users\Administrator>npm install -g webpack
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://registry.cnpmjs.org/webpack 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_18_20_477Z-debug.log

C:\Users\Administrator>

 

上一篇:云服务器对比传统物理服务器有哪些优势?


下一篇:「IOI2021」分糖果