Giter Site home page Giter Site logo

https://registry.nlark.com/d3-timer/download/d3-timer-1.0.10.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com about fe HOT 9 CLOSED

SurvivorSpace avatar SurvivorSpace commented on July 17, 2024
https://registry.nlark.com/d3-timer/download/d3-timer-1.0.10.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com

from fe.

Comments (9)

jicki avatar jicki commented on July 17, 2024 1

@jsers

切换到  https://registry.npmmirror.com  就OK了,nlark 那个是临时挂语雀的。

from fe.

jsers avatar jsers commented on July 17, 2024

from fe.

jicki avatar jicki commented on July 17, 2024

确实 registry.nlark.com 的都下载不了

#0 79.97 npm ERR! network request to https://registry.nlark.com/wrappy/download/wrappy-1.0.2.tgz?cache=0&sync_timestamp=1619133505879&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrappy%2Fdownload%2Fwrappy-1.0.2.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com
#0 79.97 npm ERR! network This is a problem related to network connectivity.
#0 79.97 npm ERR! network In most cases you are behind a proxy or have bad network settings.
#0 79.97 npm ERR! network
#0 79.97 npm ERR! network If you are behind a proxy, please make sure that the

from fe.

jsers avatar jsers commented on July 17, 2024

from fe.

jicki avatar jicki commented on July 17, 2024

我 Git clone 和 install 试了是能正常安装的,感觉是网络问题 正常情况把 package-lock.json 文件删除后,npm 会根据你设置的仓库地址去下载安装 小炒肉 @.> 于2024年5月13日周一 09:25写道:

确实 registry.nlark.com 的都下载不了 #0 79.97 npm ERR! network request to https://registry.nlark.com/wrappy/download/wrappy-1.0.2.tgz?cache=0&sync_timestamp=1619133505879&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrappy%2Fdownload%2Fwrappy-1.0.2.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com #0 79.97 npm ERR! network This is a problem related to network connectivity. #0 79.97 npm ERR! network In most cases you are behind a proxy or have bad network settings. #0 79.97 npm ERR! network #0 79.97 npm ERR! network If you are behind a proxy, please make sure that the — Reply to this email directly, view it on GitHub <#510 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYUU6WGZXVLZJRNRYOX5W3ZCAI65AVCNFSM6AAAAABHRYT2GWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGQ3DMMZUHA . You are receiving this because you commented.Message ID: @.
>

nslookup registry.nlark.com

Server:         127.0.0.53
Address:        127.0.0.53#53

** server can't find registry.nlark.com: NXDOMAIN

我看了一下不能解析这个域名

from fe.

jsers avatar jsers commented on July 17, 2024

from fe.

jsers avatar jsers commented on July 17, 2024

@jsers

切换到  https://registry.npmmirror.com  就OK了,nlark 那个是临时挂语雀的。

后面找时间我更新下 package-lock 更新

from fe.

SurvivorSpace avatar SurvivorSpace commented on July 17, 2024

感谢 这个问题解决了 但是现在又出现了另一个问题
错误信息:
15:35:17 [vite] Internal server error: svgr is not a function
Plugin: react-svg
File: D:/code/workspace/Frontend/fe/public/image/system-info.svg
at compileSvg (D:\code\workspace\Frontend\fe\vite.config.ts:36:26)
at TransformContext.transform (D:\code\workspace\Frontend\fe\vite.config.ts:79:33)
at Object.transform (D:\code\workspace\Frontend\fe\node_modules\vite\dist\node\chunks\dep-0a035c79.js:39317:53)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async doTransform (D:\code\workspace\Frontend\fe\node_modules\vite\dist\node\chunks\dep-0a035c79.js:50048:29)

参照之前的issues 发现可能安装的包不太对,但是多次删除node_modules 和 package-json.lock文件后 切换源再安装还是这样 不知道是什么原因
PS D:\code\workspace\Frontend\fe> npm ls @svgr/plugin-svgo
[email protected] D:\code\workspace\Frontend\fe
`-- @svgr/[email protected]

from fe.

jsers avatar jsers commented on July 17, 2024

感谢 这个问题解决了 但是现在又出现了另一个问题 错误信息: 15:35:17 [vite] Internal server error: svgr is not a function Plugin: react-svg File: D:/code/workspace/Frontend/fe/public/image/system-info.svg at compileSvg (D:\code\workspace\Frontend\fe\vite.config.ts:36:26) at TransformContext.transform (D:\code\workspace\Frontend\fe\vite.config.ts:79:33) at Object.transform (D:\code\workspace\Frontend\fe\node_modules\vite\dist\node\chunks\dep-0a035c79.js:39317:53) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async doTransform (D:\code\workspace\Frontend\fe\node_modules\vite\dist\node\chunks\dep-0a035c79.js:50048:29)

参照之前的issues 发现可能安装的包不太对,但是多次删除node_modules 和 package-json.lock文件后 切换源再安装还是这样 不知道是什么原因 PS D:\code\workspace\Frontend\fe> npm ls @svgr/plugin-svgo [email protected] D:\code\workspace\Frontend\fe `-- @svgr/[email protected]

出现这种情况往往是安装失败导致的
重新安装最好按下面这种方式执行

  1. 确认下 npm 的版本 8.x <= 8.5.5
  2. rm package-lock.json
  3. rm -rf node_modules
  4. npm cache clean --force
  5. npm install

如还有问题,最好贴下 install 执行后输出的信息

from fe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.