主过程中发生JavaScript错误。未知的异常:错误:找不到模块' ... \ main'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
重新安装与代码应解决您的问题。
Reinstalling vs-code should solve your issue.
有很多问题票,带有类似的错误消息和情况:
javascript发生在主要过程#172039 。同时安装用户安装和系统安装引起的问题。通过卸载两个。
。可能是由防病毒引起的。
。也可能是由防病毒破坏VS代码安装引起的。建议尝试卸载和重新安装与代码。
There are quite a few issue tickets with similar error messages and circumstances:
A JavaScript error occurred in the main process #172039. Problem caused by installing both a user installation and a system installation at the same time. Solved by uninstalling either one.
Cannot find module 'C:\Program Files\Microsoft VS Code\resources\app\out\main' #137303. Possibly caused by antivirus.
Error: Cannot find module 'C:\Program Files\Microsoft VS Code\resources\app\out\main' #138893. Also possibly caused by antivirus corrupting the VS Code installation. Suggested to try uninstalling and reinstalling VS Code.