扩展主机意外终止,错误代码为3221225477信号:null

时间:2017-10-23 07:02:38

标签: npm windows-10 visual-studio-code

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

请告知如何解决此错误。

谢谢和问候 维杰

2 个答案:

答案 0 :(得分:1)

您正在键入'install npm install',但第一个'install'不是CMD的二进制文件。

尝试安装节点(包括npm):

https://nodejs.org/en/download/

答案 1 :(得分:0)

转到环境路径设置,在用户路径和系统路径的“路径”中,还有一个“;”对于visual studio代码,删除“;”并重新启动VS代码,现在一切正常。

我认为这是微软的错误。