GitHub下载vue-element-admin安装依赖报错

vue-element-admin运行npm install 报错

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.git
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\17605\AppData\Local\npm-cache\_logs\2022-03-21T10_41_46_956Z-debug.log

试了好几种办法,修改.gitconfig文件,配置过tb镜像,也重新配置过GitHub的ssh,还是未能解决,最后看见一篇直接删除依赖的,删除完了就解决了。

原文:https://juejin.cn/post/6979047498941726750

 

 

下面是修改了一下的,只需要删除这些也是可以安装了的,

1、打开package.json把"tui-editor"删掉

2、删除"tui-editor"相关路由、components,具体文件地址如下:

路由位置: src/router/modules/components.js 搜索markdown,把相应路由代码删除

components位置:

src/components/MarkdownEditor

删除后,再执行npm install 或 npm install --registry=registry.npm.taobao.org 下载并运行成功!

 

 

vue-admin-template简洁版可以直接npm install运行成功

vue-element-admin加强版的却运行报错的,后续找到方法了再来更新。。。 

 

下一篇解决的地址https://www.cnblogs.com/Privatexaio/p/16037909.html

posted @ 2022-03-21 23:40  Private!  阅读(1565)  评论(0编辑  收藏  举报