Node-pty: 启动WinPTY代理时出错:ConnectNamedPipe失败:在新的WindowsPtyAgent上出现Windows错误232

创建于 2018-07-05  ·  19评论  ·  资料来源: microsoft/node-pty

环境细节

  • 操作系统:Windows

问题说明

polyfills.af71788f6a4543fc4b66.bundle.js:1 Env产品
polyfills.af71788f6a4543fc4b66.bundle.js:1分配新的工作区。
polyfills.af71788f6a4543fc4b66.bundle.js:1 C:\ Users \ ch5174 \ Desktop
polyfills.af71788f6a4543fc4b66.bundle.js:1创建的PID终端:12836
polyfills.af71788f6a4543fc4b66.bundle.js:1关闭终端12836
polyfills.af71788f6a4543fc4b66.bundle.js:1对象{httpStatus:200,数据:Object}
polyfills.af71788f6a4543fc4b66.bundle.js:1错误错误:启动WinPTY代理时出错:ConnectNamedPipe失败:Windows错误232
在新的WindowsPtyAgent上(C:\ Program Files \ Neutrinos Studio \ resources \ app.asarnode_modules \ node-pty \ lib \ windowsPtyAgent.js:25)
在新的WindowsTerminal(C:\ Program Files \ Neutrinos Studio \ resources \ app.asarnode_modules \ node-pty \ lib \ windowsTerminal.js:45)
在Object.spawn(C:\ Program Files \ Neutrinos Studio \ resources \ app.asarnode_modules \ node-pty \ lib \ index.js:27)
在t.createTerminal(main.ff3549c0f3d7063e2006.bundle.js:1)
在t.ngAfterViewInit(main.ff3549c0f3d7063e2006.bundle.js:1)
在Yi(main.ff3549c0f3d7063e2006.bundle.js:1)
在Ki(main.ff3549c0f3d7063e2006.bundle.js:1)
位于Gi(main.ff3549c0f3d7063e2006.bundle.js:1)
在vr(main.ff3549c0f3d7063e2006.bundle.js:1)
在Er(main.ff3549c0f3d7063e2006.bundle.js:1)
控制台。(匿名函数)@ polyfills.af71788f6a4543fc4b66.bundle.js:1
J @ main.ff3549c0f3d7063e2006.bundle.js:1
WT6e.t.handleError @ main.ff3549c0f3d7063e2006.bundle.js:1
(匿名)@ main.ff3549c0f3d7063e2006.bundle.js:1
e.invoke @ polyfills.af71788f6a4543fc4b66.bundle.js:1
t.run @ polyfills.af71788f6a4543fc4b66.bundle.js:1
WT6e.t.runOutsideAngular @ main.ff3549c0f3d7063e2006.bundle.js:1
WT6e.t.tick @ main.ff3549c0f3d7063e2006.bundle.js:1
(匿名)@ main.ff3549c0f3d7063e2006.bundle.js:1
e.invoke @ polyfills.af71788f6a4543fc4b66.bundle.js:1
onInvoke @ main.ff3549c0f3d7063e2006.bundle.js:1
e.invoke @ polyfills.af71788f6a4543fc4b66.bundle.js:1
t.run @ polyfills.af71788f6a4543fc4b66.bundle.js:1
WT6e.t.run @ main.ff3549c0f3d7063e2006.bundle.js:1
下一个@ main.ff3549c0f3d7063e2006.bundle.js:1
e.object.r @ main.ff3549c0f3d7063e2006.bundle.js:1
OVmG.e .__ tryOrUnsub @ main.ff3549c0f3d7063e2006.bundle.js:1
OVmG.e.next @ main.ff3549c0f3d7063e2006.bundle.js:1
OVmG.e._next @ main.ff3549c0f3d7063e2006.bundle.js:1
OVmG.e.next @ main.ff3549c0f3d7063e2006.bundle.js:1
e.next @ main.ff3549c0f3d7063e2006.bundle.js:1
WT6e.e.emit @ main.ff3549c0f3d7063e2006.bundle.js:1
Rt @ main.ff3549c0f3d7063e2006.bundle.js:1
onHasTask @ main.ff3549c0f3d7063e2006.bundle.js:1
e.hasTask @ polyfills.af71788f6a4543fc4b66.bundle.js:1
e._updateTaskCount @ polyfills.af71788f6a4543fc4b66.bundle.js:1
t._updateTaskCount @ polyfills.af71788f6a4543fc4b66.bundle.js:1
t.runTask @ polyfills.af71788f6a4543fc4b66.bundle.js:1
v @ polyfills.af71788f6a4543fc4b66.bundle.js:1
polyfills.af71788f6a4543fc4b66.bundle.js:1错误错误:启动WinPTY代理时出错:ConnectNamedPipe失败:Windows错误232
在新的WindowsPtyAgent上(C:\ Program Files \ Neutrinos Studio \ resources \ app.asarnode_modules \ node-pty \ lib \ windowsPtyAgent.js:25)
在新的WindowsTerminal(C:\ Program Files \ Neutrinos Studio \ resources \ app.asarnode_modules \ node-pty \ lib \ windowsTerminal.js:45)
在Object.spawn(C:\ Program Files \ Neutrinos Studio \ resources \ app.asarnode_modules \ node-pty \ lib \ index.js:27)
在t.createTerminal(main.ff3549c0f3d7063e2006.bundle.js:1)
在e._next(main.ff3549c0f3d7063e2006.bundle.js:1)
在e.OVmG.e .__ tryOrUnsub(main.ff3549c0f3d7063e2006.bundle.js:1)
在e.OVmG.e.next(main.ff3549c0f3d7063e2006.bundle.js:1)
在e.OVmG.e._next(main.ff3549c0f3d7063e2006.bundle.js:1)
在e.OVmG.e.next(main.ff3549c0f3d7063e2006.bundle.js:1)
在e.next(main.ff3549c0f3d7063e2006.bundle.js:1)
e.invoke @ polyfills.af71788f6a4543fc4b66.bundle.js:1
t.run @ polyfills.af71788f6a4543fc4b66.bundle.js:1
控制台。(匿名函数)@ polyfills.af71788f6a4543fc4b66.bundle.js:1
J @ main.ff3549c0f3d7063e2006.bundle.js:1
WT6e.t.handleError @ main.ff3549c0f3d7063e2006.bundle.js:1
xn @ main.ff3549c0f3d7063e2006.bundle.js:1
(匿名)@ main.ff3549c0f3d7063e2006.bundle.js:1
(匿名)@ main.ff3549c0f3d7063e2006.bundle.js:1
e.invokeTask @ polyfills.af71788f6a4543fc4b66.bundle.js:1
onInvokeTask @ main.ff3549c0f3d7063e2006.bundle.js:1
e.invokeTask @ polyfills.af71788f6a4543fc4b66.bundle.js:1
t.runTask @ polyfills.af71788f6a4543fc4b66.bundle.js:1
t.invokeTask @ polyfills.af71788f6a4543fc4b66.bundle.js:1
p @ polyfills.af71788f6a4543fc4b66.bundle.js:1
h @ polyfills.af71788f6a4543fc4b66.bundle.js:1
polyfills.af71788f6a4543fc4b66.bundle.js:1错误错误:未捕获(承诺):TypeError:无法读取未定义的属性“取消订阅”
TypeError:无法读取未定义的属性“取消订阅”
在t.ngOnDestroy(main.ff3549c0f3d7063e2006.bundle.js:1)
在Yi(main.ff3549c0f3d7063e2006.bundle.js:1)
在Ki(main.ff3549c0f3d7063e2006.bundle.js:1)
位于Gi(main.ff3549c0f3d7063e2006.bundle.js:1)
在Cr(main.ff3549c0f3d7063e2006.bundle.js:1)
在Er(main.ff3549c0f3d7063e2006.bundle.js:1)
在Sr(main.ff3549c0f3d7063e2006.bundle.js:1)
在Object.Cr [作为destroyView](main.ff3549c0f3d7063e2006.bundle.js:1)
在t.WT6e.t.destroy(main.ff3549c0f3d7063e2006.bundle.js:1)
在e.WT6e.e.destroy(main.ff3549c0f3d7063e2006.bundle.js:1)
在t.ngOnDestroy(main.ff3549c0f3d7063e2006.bundle.js:1)
在Yi(main.ff3549c0f3d7063e2006.bundle.js:1)
在Ki(main.ff3549c0f3d7063e2006.bundle.js:1)
位于Gi(main.ff3549c0f3d7063e2006.bundle.js:1)
在Cr(main.ff3549c0f3d7063e2006.bundle.js:1)
在Er(main.ff3549c0f3d7063e2006.bundle.js:1)
在Sr(main.ff3549c0f3d7063e2006.bundle.js:1)
在Object.Cr [作为destroyView](main.ff3549c0f3d7063e2006.bundle.js:1)
在t.WT6e.t.destroy(main.ff3549c0f3d7063e2006.bundle.js:1)
在e.WT6e.e.destroy(main.ff3549c0f3d7063e2006.bundle.js:1)
在D(polyfills.af71788f6a4543fc4b66.bundle.js:1)
在D(polyfills.af71788f6a4543fc4b66.bundle.js:1)
在polyfills.af71788f6a4543fc4b66.bundle.js:1
在e.invokeTask(polyfills.af71788f6a4543fc4b66.bundle.js:1)
在Object.onInvokeTask上(main.ff3549c0f3d7063e2006.bundle.js:1)
在e.invokeTask(polyfills.af71788f6a4543fc4b66.bundle.js:1)
在t.runTask上(polyfills.af71788f6a4543fc4b66.bundle.js:1)
在v(polyfills.af71788f6a4543fc4b66.bundle.js:1)

控制台。(匿名函数)@ polyfills.af71788f6a4543fc4b66.bundle.js:1
J @ main.ff3549c0f3d7063e2006.bundle.js:1
WT6e.t.handleError @ main.ff3549c0f3d7063e2006.bundle.js:1
下一个@ main.ff3549c0f3d7063e2006.bundle.js:1
e.object.r @ main.ff3549c0f3d7063e2006.bundle.js:1
OVmG.e .__ tryOrUnsub @ main.ff3549c0f3d7063e2006.bundle.js:1
OVmG.e.next @ main.ff3549c0f3d7063e2006.bundle.js:1
OVmG.e._next @ main.ff3549c0f3d7063e2006.bundle.js:1
OVmG.e.next @ main.ff3549c0f3d7063e2006.bundle.js:1
e.next @ main.ff3549c0f3d7063e2006.bundle.js:1
WT6e.e.emit @ main.ff3549c0f3d7063e2006.bundle.js:1
(匿名)@ main.ff3549c0f3d7063e2006.bundle.js:1
e.invoke @ polyfills.af71788f6a4543fc4b66.bundle.js:1
t.run @ polyfills.af71788f6a4543fc4b66.bundle.js:1
WT6e.t.runOutsideAngular @ main.ff3549c0f3d7063e2006.bundle.js:1
onHandleError @ main.ff3549c0f3d7063e2006.bundle.js:1
e.handleError @ polyfills.af71788f6a4543fc4b66.bundle.js:1
t.runGuarded @ polyfills.af71788f6a4543fc4b66.bundle.js:1
e @ polyfills.af71788f6a4543fc4b66.bundle.js:1
n.microtaskDrainDone @ polyfills.af71788f6a4543fc4b66.bundle.js:1
v @ polyfills.af71788f6a4543fc4b66.bundle.js:1

最有用的评论

希望这可能对某些人有所帮助...从实时扫描中排除了各种文件之后,我终于发现排除C:\Users\<your-username>\AppData\Local\hyper\app-<your-version>\resources\app.asar.unpacked\node_modules\node-pty\build\Release\winpty-agent.exe为我解决了这个问题。 您和我一样,可能会觉得这比安装替换二进制文件容易。

至少在默认安装位置。

(Win10 Pro,McAfee LiveSafe,Hyper 2.1.2)

_edit:_好像我在错误的问题上回答了。 哎呀

所有19条评论

@Tyriar我们使用的xterm具有node-pty依赖性,并且此异常每两到三次发生一次。

依赖版本:

  1. 电子1.8.2
  2. 结点数0.7.4
  3. xterm 3.2.0

环境:
Windows 10、16GB RAM,Intel i7处理器

@蒂里亚尔你是对的。 我以管理员身份打开它。 完成它。

@ yy7054wyq5它仅在管理员下有效吗?

@Tyriar是的。但是我在“ vscode”中发现了此错误。我以管理员身份打开“ vscode”,该错误未出现。 我使用“ VSCodeUserSetup-x64-1.26.1.exe”进行安装。

以管理员身份运行vscode对我不起作用。 我正在使用node-pty 0.6.10。
这是vscode详细信息:-

版本:1.26.1
提交:493869ee8e8a846b0855873886fc79d480d342de
日期:2018-08-16T18:38:57.434Z
电子:2.0.5
铬:61.0.3163.100
Node.js:8.9.3
V8:6.1.534.41
架构:x64

这可能是一个防病毒问题-请参阅https://github.com/rprichard/winpty/issues/142。 我已经用Avast防病毒程序重现了ConnectNamedPipe failed: Windows error 232错误,最初在沙箱中运行winpty-agent.exe才真正运行它。 第一个特工实例将第二个特工拧紧。 如果您安装了任何第三方防病毒软件,请尝试(暂时)禁用它或添加winpty.dll / winpty-agent.exe程序作为例外。

@rprichard我不认为您拥有winpty.dll / winpty-agent.exe的64位胜利的构建,我们可以尝试使用吗?

我在该分支机构中针对防病毒问题实施了一种可能的解决方法: https : ConnectNamedPipe failed: Windows error 232错误。

二进制文件在这里可用:
https://ci.appveyor.com/project/rprichard/winpty/builds/19509205/artifacts

我建议使用winpty-0.4.4-dev-msvc2015.zip二进制文件(尽管任何存档中的相同两个文件只要是正确的CPU架构都应该可以工作)。 如果您的VSCode二进制文件是64位,则使用zip文件的x64/bin子目录,否则使用ia32/bin 。 复制winpty.dll / winpty-agent.exe二进制文件上的那些VSCode/resources/app/node_modules.asar.unpacked/node-pty/build/Release

问题仍然存在,我尝试了您的选择。 请尽快提供修复

对我而言,此问题最终是由McAfee防病毒软件将./node_modules/node-pty/winpty-agent.exe标记为威胁并不允许使用而引起的。

即使以管理员身份运行时,也会发生这种情况,而我的唯一解决方法是更改​​安全规则以忽略此文件。

Ryan为Avast和McAfee提供的文件非常好运。 @pappacurds放进上面链接中的文件是否对您没有改善?

您使用特定的公司合规性设置还是默认的McAfee配置运行?

@TimWebb这是一个具有更严格的安全设置的公司环境,我通过告诉McAfee忽略了node-pty中打包的winpty-agent.exe文件解决了该问题,似乎已经解决了该问题。

我在家中未运行McAfee的任何个人计算机上都从未遇到过此问题。

我在该分支机构中针对防病毒问题实施了一种可能的解决方法: https : ConnectNamedPipe failed: Windows error 232错误。

二进制文件在这里可用:
https://ci.appveyor.com/project/rprichard/winpty/builds/19509205/artifacts

我建议使用winpty-0.4.4-dev-msvc2015.zip二进制文件(尽管任何存档中的相同两个文件只要是正确的CPU架构都应该可以工作)。 如果您的VSCode二进制文件是64位,则使用zip文件的x64/bin子目录,否则使用ia32/bin 。 复制winpty.dll / winpty-agent.exe二进制文件上的那些VSCode/resources/app/node_modules.asar.unpacked/node-pty/build/Release

我可以确认这对我有用:)非常感谢,谢谢。

复制的zip文件的bin文件夹内容到\ AppData \ Local \ hyper \ app-2.1.2 \ resources \ app.asar.unpackednode_modules \ node-pty \ build \ Release

开始超级,一​​切看起来不错。

我可以确认这对我也有用🥇。 非常感谢,谢谢。

希望这可能对某些人有所帮助...从实时扫描中排除了各种文件之后,我终于发现排除C:\Users\<your-username>\AppData\Local\hyper\app-<your-version>\resources\app.asar.unpacked\node_modules\node-pty\build\Release\winpty-agent.exe为我解决了这个问题。 您和我一样,可能会觉得这比安装替换二进制文件容易。

至少在默认安装位置。

(Win10 Pro,McAfee LiveSafe,Hyper 2.1.2)

_edit:_好像我在错误的问题上回答了。 哎呀

@badZombi在自述https :

希望这可能对某些人有所帮助...从实时扫描中排除了各种文件之后,我终于发现排除C:\Users\<your-username>\AppData\Local\hyper\app-<your-version>\resources\app.asar.unpacked\node_modules\node-pty\build\Release\winpty-agent.exe为我解决了这个问题。 您和我一样,可能会觉得这比安装替换二进制文件容易。

至少在默认安装位置。

(Win10 Pro,McAfee LiveSafe,Hyper 2.1.2)

_edit:_好像我在错误的问题上回答了。 哎呀

这项工作对我来说!!!

我称此已完成,因为现在在node-pty和vscode文档中都已将其调出。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

igor-lemon picture igor-lemon  ·  5评论

stoffeastrom picture stoffeastrom  ·  38评论

cobidennis picture cobidennis  ·  3评论

stoffeastrom picture stoffeastrom  ·  9评论

fczuardi picture fczuardi  ·  6评论