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,还是未能解决,最后看见一篇直接删除依赖的,删除完了就解决了。

具体如下:

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

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

  • 路由位置:

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

  • components位置:

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

3、启动项目 npm run dev

 附:

Github地址 https://github.com/PanJiaChen/vue-element-admin

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐