npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/sohee-lee7/Squire.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-05-25T16_10_06_996Z-debug.log
PS D:\Qianduan-Heima\Admin\vue-element-admin>
把四个文件删除具体如下的1-4:
1、vue-element-admin\package.json 删除‘tui-editor’:‘1.3.3’依赖项。
2、vue-element-admin\src\components 删除MarkdownEditor文件夹。
3、vue-element-admin\src\view\components-demo 删除markdown.vue文件。
4、vue-element-admin\src\router\modules components.js 删除:path:‘markdown 所在的对象。
5、在命令行输入npm cache clean --force
6、npm install
7、npm run dev
[如果不想语法格式检查 那个空格缩进可能会报错] 点开vue.config.js 在module.exports里面加 lintOnSave: false,就可以了(记得要重新跑一下项目才生效 npm run dev)