vue-element-admin安装依赖报错npm ERR! Error while executing:

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 20.205.243.166]: errno=Unknown error
npm ERR!
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2024-01-03T04_44_11_866Z-debug.log

vue-element-admin安装依赖报错npm ERR! Error while executing:_第1张图片

vue-element-admin安装依赖报错npm ERR! Error while executing:_第2张图片

npm install安装依赖时报错,打开根目录的package.json文件,删除tui-editor依赖,再执行npm install命令重新安装依赖

vue-element-admin安装依赖报错npm ERR! Error while executing:_第3张图片

安装依赖成功

删除组件路由,打开src/router/modules/components.js文件,删除markdown的路由配置,如下图

vue-element-admin安装依赖报错npm ERR! Error while executing:_第4张图片

删除组件markdown;

npm run dev

运行命令编辑后打开项目

vue-element-admin安装依赖报错npm ERR! Error while executing:_第5张图片

你可能感兴趣的:(vue.js,npm,前端)