Comments (9)
切换到 https://registry.npmmirror.com 就OK了,nlark 那个是临时挂语雀的。
from fe.
from fe.
确实 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.
from fe.
我 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.
from fe.
切换到 https://registry.npmmirror.com 就OK了,nlark 那个是临时挂语雀的。
后面找时间我更新下 package-lock 更新
from fe.
感谢 这个问题解决了 但是现在又出现了另一个问题
错误信息:
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.
感谢 这个问题解决了 但是现在又出现了另一个问题 错误信息: 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]
出现这种情况往往是安装失败导致的
重新安装最好按下面这种方式执行
- 确认下 npm 的版本 8.x <= 8.5.5
- rm package-lock.json
- rm -rf node_modules
- npm cache clean --force
- npm install
如还有问题,最好贴下 install 执行后输出的信息
from fe.
Related Issues (20)
- 这个项目后端在哪里 HOT 2
- 时间轴的间隔可配置化 HOT 2
- packjson.lock淘宝源过期了,建议更换 HOT 1
- 仪表盘的变量值在URL中会改变 HOT 2
- 告警规则里面的备注 拉伸 问题 HOT 2
- npm run build编译报错
- 前端项目单独部署访问报错 HOT 4
- [v7] build error HOT 1
- edge 节点启动无法访问 404 page not found HOT 2
- 怎么将前端独立运行 HOT 3
- 前端v7.0.0-beta.4 版本编译报错 HOT 3
- 添加 仪表盘 类型的图表内容显示不全 HOT 2
- 【告警规则配置】先修改Metric部分后再去修改Hots部分,保存会丢失Metric部分,切换标签也会丢失之前改的信息 HOT 2
- 需求:集成仪表盘中能添加全屏展示操作么 HOT 3
- i18n国际化,我安装了vscode i18n Ally 插件,但是代码中的t(xxx)一直不显示中文,i8n ally插件也开启了ts支持,路径也配置的正确,请问下如可以在代码中正确显示中文内容 HOT 4
- 仪表盘中 关于 时间选择 HOT 8
- 建议:可视化面板添加“一键折叠所有分组”的功能 HOT 5
- 本地部署运行报错:Unexpected token '<', "<!-- ~ C"... is not valid JSON HOT 3
- 建议:页面跳转支持组合键新窗口弹出 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fe.