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
解决!(亲测有用)
具体如下:
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
第二种方法:
使用 npm install --legacy-peer-deps 命令无视版本冲突 直接下载