问题描述
VS code无法启动
在对应安装路径中输入powershell 启动命令行,显示如下报错
PS C:\Program Files\Microsoft VS Code> ./Code.exe
PS C:\Program Files\Microsoft VS Code>
----- Native stack trace -----
1: 00007FF6184F3A8A uv_cpumask_size+72266
2: 00007FF618493D3B node::InitializeOncePerProcess+1579
3: 00007FF618493735 node::InitializeOncePerProcess+37
4: 00007FF616876830 node::loader::ModuleWrap::SelfSize+3088
5: 00007FF6167BEB74 uv_timer_get_repeat+16980
6: 00007FF6175B854B v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+2036843
7: 00007FF6175BC6DF v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+2053631
8: 00007FF6175B7ABC v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+2034140
9: 00007FF616969452 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+461170
10: 00007FF61696A737 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+466007
11: 00007FF61696A4FE v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+465438
12: 00007FF616968D06 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+459302
13: 00007FF616968E4D v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+459629
14: 00007FF6166BBDF5 v8::Extension::set_auto_enable+78213
15: 00007FF61A87B942 Cr_z_adler32+5234738
16: 00007FFF0F2A74B4 BaseThreadInitThunk+20
17: 00007FFF0FB026A1 RtlUserThreadStart+33
问题原因
C:\Windows\System32\drivers\null.sys
这个null.sys文件不存在
在cmd命令行运行sc start null会报错失败2
解决方法
1.找一台相同版本win10电脑拷贝null.sys文件
中间安装了一个损毁的null.sys文件,提示失败577
2.cmd执行 sc query null 提示指定的服务未安装;
3.执行创建命令
sc create null binPath= C:\Windows\System32\drivers\null.sys type= kernel start= auto error= normal
4. 执行 sc query null
和sc start null
执行完上述步骤后,双击VS Code图标即可打开
之前一直无法打开的最新版Typora 也可以正常使用了