[Info - 5:36:19 PM] ESLint server is starting.
[Info - 5:36:20 PM] ESLint server running in node v20.9.0
[Info - 5:36:20 PM] ESLint server is running.
Uncaught exception received.
Error: spawn D:\Users\glsc\AppData\Local\Programs\Microsoft VS Code\Code.exe ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
解决方法:
1、找到eslint的全局配置,可以在vscode的setting内搜索eslint
2、修改文件
// "eslint.nodePath": "C:\\Users\\glsc\\AppData\\Roaming\\npm",
// 删除上面一行,增加下面一行
"eslint.runtime": "node",