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

2023-05-14  本文已影响0人  IssunRadiance

在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 改名了

上一篇 下一篇

猜你喜欢

热点阅读