Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

源码安装的时候提示FetchError: request to https://registry.nlark.com/consola/download/consola-2.15.3.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com #99

Open
duzengjie opened this issue Jun 19, 2024 · 6 comments

Comments

@duzengjie
Copy link

开始执行...
安装 node_module via pnpm
Progress: resolved 0, reused 1, downloaded 0, added 0

 WARN  GET https://registry.nlark.com/consola/download/consola-2.15.3.tgz error (ENOTFOUND). Will retry in 10 seconds. 2 retries left.

Progress: resolved 7, reused 7, downloaded 0, added 0

 WARN  GET https://registry.nlark.com/consola/download/consola-2.15.3.tgz error (ENOTFOUND). Will retry in 1 minute. 1 retries left.

 ENOTFOUND  request to https://registry.nlark.com/consola/download/consola-2.15.3.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com

This error happened while installing a direct dependency of /Users/duzengjie/WebstormProjects/melody/backend

FetchError: request to https://registry.nlark.com/consola/download/consola-2.15.3.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com
at ClientRequest. (/Users/duzengjie/.nvm/versions/node/v18.16.0/lib/node_modules/pnpm/dist/pnpm.cjs:75683:18)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:502:9)
at TLSSocket.emit (node:events:525: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)

安装后端 node_module 失败

@foamzou
Copy link
Owner

foamzou commented Jun 19, 2024

看起来是你自己本地配置了 npm 镜像,而这个镜像的地址处于不可用的状态。
如果动手能力不是很强的话,建议使用docker部署。

@duzengjie
Copy link
Author

image 我只配置了淘宝的,不应该会有https://registry.nlark.com/

@duzengjie
Copy link
Author

我发现在这个文件backend/pnpm-lock.yaml 里面就有https://registry.nlark.com/ 这个地址

@duzengjie
Copy link
Author

删除两个pnpm-lock.yaml 就好了

@foamzou
Copy link
Owner

foamzou commented Jun 20, 2024

好的,谢谢反馈。我有空看看

@xiaobai-com
Copy link

xiaobai-com commented Sep 1, 2024

image
这里也要换了才行 最新的应该是换成 registry.npmjs.org 三个都换成这个截图的那个是之前的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants