美文网首页
vue-element-admin运行报错fatal: unab

vue-element-admin运行报错fatal: unab

作者: IssunRadiance | 来源:发表于2023-05-14 14:36 被阅读0次

在vue-element-admin项目中, npm install 报错:

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR! 
npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': The requested URL returned error: 400
npm ERR! 
npm ERR! exited with error code: 128

解决方案:

  1. 卸载tui-editor
npm uninstall tui-editor
// 如果你的项目中,没有用到这个依赖, 到这一步,就可以直接install 运行了。
  1. 如果你的项目中有src/components/MarkdownEditor/index.vue
    这个组件、或者有用到tui-editor这个依赖的话
// 单独安装tui-editor、 并把该文件中的路径进行更换
npm install --save @toast-ui/vue-editor

-- 本质原因就是 这个依赖的一个插件 tui 改名了

相关文章

网友评论

      本文标题:vue-element-admin运行报错fatal: unab

      本文链接:https://www.haomeiwen.com/subject/gpjpsdtx.html