当前位置:网站首页>安装tui-editor失败,快速解决方案
安装tui-editor失败,快速解决方案
2022-04-23 06:18:00 【flym_】
问题描述:
最近接手了一个老项目,在安装依赖包的时候报错无法,由于某一个依赖包的原因导致依赖包无法安装。
npm install 出错
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: remote error:
npm ERR! The unauthenticated git protocol on port 9418 is no longer supported.
npm ERR! Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
npm ERR!
npm ERR! exited with error code: 128
问题原因:
通过一个个的包安装,最好发现是tui-editor这个包的原因导致报的错,报错的主要原因还是因为这个包更新,之前这个包的相关依赖是无法安装又或者是墙内的原因导致的。
解决方法:
第一个方法: 可以通过别的同事,将node_modules这个文件夹全部移过来,好了,迅速解决了当前问题。
第二个方法: 找到项目中的package-lock.json文件,在文件内找到tui-editor这个包的相关信息并替换,然后再重新npm i一下,
"tui-editor": {
"version": "1.4.10",
"resolved": "https://registry.npm.taobao.org/tui-editor/download/tui-editor-1.4.10.tgz",
"integrity": "sha1-xprBWEL4GSdIV/GEMA0k8KXtZxc=",
"requires": {
"@types/codemirror": "0.0.71",
"@types/jquery": "^3.3.29",
"@types/markdown-it": "0.0.7",
"codemirror": "^5.48.4",
"highlight.js": "^9.12.0",
"jquery": "^3.3.1",
"markdown-it": "^9.0.0",
"plantuml-encoder": "^1.2.5",
"resize-observer-polyfill": "^1.5.0",
"squire-rte": "github:seonim-ryu/Squire#fb6cd9b1ac66ca471ded83637523c4fbf7072f86",
"to-mark": "^1.1.9",
"tui-chart": "^3.7.0",
"tui-code-snippet": "^1.5.0",
"tui-color-picker": "^2.2.1"
}
},
版权声明
本文为[flym_]所创,转载请带上原文链接,感谢
https://blog.csdn.net/u014689760/article/details/124317653
边栏推荐
猜你喜欢
随机推荐
GIS实用小技巧(三)-CASS怎么添加图例?
AUTOSAR从入门到精通100讲(八十三)-BootLoader自我刷新
不需要破解markdown编辑工具Typora
海南凤凰机场智能通信解决方案
Solution of emergency communication system for major security incidents
Pep517 error during pycuda installation
可视化之路(十二)Collection类详解
Beifeng communication helps Zhanjiang fire brigade build PDT wireless communication system
美摄科技受邀LVSon2020大会 分享《AI合成虚拟人物的技术框架与挑战》
连接orcale
可视化之路(十一)matplotlib颜色详解
“泉”力以赴·同“州”共济|北峰人一直在行动
AUTOSAR从入门到精通100讲(五十二)-诊断和通信管理功能单元
DMR system solution of Kaiyuan MINGTING hotel of Fengqiao University
【技术规范】:如何写好技术文档?
关于短视频技术轮廓探讨
【51单片机交通灯仿真】
商业版阿里MQ普通消息发送订阅Demo
go语言切片操作
The people of Beifeng have been taking action