每当我尝试打开VS Code时,都会看到以下错误:
这是成绩单:
Uncaught Exception:
Error: Cannot find module 'C:\Program Files\Microsoft VS Code\resources\app\out\main'
Require stack:
-
at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
at Function.Module._resolveFilename (C:\Program Files\Microsoft VS Code\resources\electron.asar\common\reset-search-path.js:46:16)
at Function.Module._load (internal/modules/cjs/loader.js:531:27)
at Object.<anonymous> (C:\Program Files\Microsoft VS Code\resources\electron.asar\browser\init.js:191:12)
at Module._compile (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:850:10)
at internal/main/run_main_module.js:17:11
我无法在VS Code中打开任何项目;任何尝试都会引发相同的错误。在收到此错误之前,我在同一会话中运行VS Code时没有任何问题。