提问人:Senzawa 提问时间:11/15/2023 更新时间:11/15/2023 访问量:35
使用任何包管理器进行节点包安装时出错
Error while doing node package installation using any Package Manager
问:
我曾经尝试过做这种事情有一段时间了。但从 2 天前开始,它开始给我带来错误。我真的不知道发生了什么。我使用的是 Windows 11。
起初,我使用的是 和 .在它总是给我错误之后,我尝试了.这是一样的。我还尝试将我的nodeJS版本降级到其他版本,但没有任何帮助。npm
pnpm
yarn
这是我尝试过的一些包管理器及其返回的错误:
npm i
返回错误:
WARN GET http://registry.npmjs.org/create-vite error (ETIMEDOUT). Will retry in 10 seconds. 2 retries left.
WARN GET http://registry.npmjs.org/create-vite error (ETIMEDOUT). Will retry in 1 minute. 1 retries left.
ERR_PNPM_META_FETCH_FAIL GET http://registry.npmjs.org/create-vite: request to http://registry.npmjs.org/create-vite failed, reason:
../../.pnpm-store/v3/tmp/dlx-6212 | +1 +
../../.pnpm-store/v3/tmp/dlx-6212 | Progress: resolved 1, reused 0, downloaded 0, added 0
(node:6212) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
FetchError: request to https://registry.npmjs.org/create-vite/-/create-vite-4.4.1.tgz failed, reason:
at ClientRequest.<anonymous> (C:\Users\SalamP\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:61908:18)
at ClientRequest.emit (node:events:514:28)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:526:35)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
../../.pnpm-store/v3/tmp/dlx-6212 | Progress: resolved 1, reused 0, downloaded 0, added 0
yarn create vite
返回错误:
yarn create v1.22.19
[1/4] Resolving packages...
⠁ create-vite(node:22428) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
info There appears to be trouble with your network connection. Retrying...
⡀ create-vite(node:22428) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
info There appears to be trouble with your network connection. Retrying...
⠐ create-vite(node:22428) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
info There appears to be trouble with your network connection. Retrying...
⠄ create-vite(node:22428) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
info There appears to be trouble with your network connection. Retrying...
⠠ create-vite(node:22428) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
error An unexpected error occurred: "https://registry.npmjs.org/create-vite: ".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\SalamP\\AppData\\Local\\Yarn\\Data\\global\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
PS W:\Outbound\Code\Test PM>
答: 暂无答案
评论