作者:独坤2602884605 | 来源:互联网 | 2023-08-26 14:26
篇首语:本文由编程笔记#小编为大家整理,主要介绍了扩展主机意外终止,错误代码为3221225477信号:null相关的知识,希望对你有一定的参考价值。
PS D:> install npm
install : The term 'install' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ install npm
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (install:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
当尝试在Windows 10操作系统中的vscode版本VSCodeSetup-x64-1.17.2中安装npm时,我收到错误。
调试器的错误代码如下
3221225477 Signal: null
e._onExtensionHostCrashed @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:29
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly.
e.doShow @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28
C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly.
e.doShow @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28
请告知如何解决此错误。
谢谢,并问候维杰
答案
您正在键入'install npm install',但第一个'install'不是CMD的二进制文件。
尝试安装节点(包括npm):
https://nodejs.org/en/download/
另一答案
转到环境路径设置,在用户路径和系统路径的“路径”中,还有一个“;”对于visual studio代码,删除“;”并重新启动VS代码,现在一切正常。
我认为这是微软的错误。