Srar / node-tap

基于TypeScript实现的开源SSTap
Apache License 2.0
681 stars 149 forks source link

Unhandled Rejection at: Promise Promise #20

Closed EjiHuang closed 6 years ago

EjiHuang commented 6 years ago

今天有空试了下您的node-sstap,出现了如下的错误: **Unhandled Rejection at: Promise Promise {

Error: The specified module could not be found. \\?\F:\_git\NodeTapGui\NodeTapGui\bin\x64\Debug\node_modules\cap\build\Release\cap.node at Object.Module._extensions..node (module.js:662:18) at Module.load (module.js:552:32) at tryModuleLoad (module.js:495:12) at Function.Module._load (module.js:487:3) at Module.require (module.js:577:17) at Module.require (pkg/prelude/bootstrap.js:1153:31) at require (internal/module.js:11:18) at Object. (C:\snapshot\node-tap\node_modules\cap\lib\Cap.js:3:13) at Module._compile (pkg/prelude/bootstrap.js:1243:22) at Object.Module._extensions..js (module.js:644:10) } reason: Error: The specified module could not be found. \\?\F:\_git\NodeTapGui\NodeTapGui\bin\x64\Debug\node_modules\cap\build\Release\cap.node at Object.Module._extensions..node (module.js:662:18) at Module.load (module.js:552:32) at tryModuleLoad (module.js:495:12) at Function.Module._load (module.js:487:3) at Module.require (module.js:577:17) at Module.require (pkg/prelude/bootstrap.js:1153:31) at require (internal/module.js:11:18) at Object. (C:\snapshot\node-tap\node_modules\cap\lib\Cap.js:3:13) at Module._compile (pkg/prelude/bootstrap.js:1243:22) at Object.Module._extensions..js (module.js:644:10)** 测试平台: Window 10 x64 16299 nmap-7.70 tap-windows-9.21.2 命令格式: .\sstap.exe --host ******.*** --port 10086 --passwd ***** --xtudp 20 --method aes-256-gcm --tcphost ******.*** --tcpport 10086 --tcppasswd ***** --tcpmethod aes-256-gcm 另外小生顺便写了个GUI小程序,用来调用您的Node SSTap ![image](https://user-images.githubusercontent.com/10510947/39672933-eb9be27c-5165-11e8-8f88-d4ad7de1d79b.png)
Srar commented 6 years ago

这个错误应该是npm install时 编译cap模块失败导致的.

编译失败会导致cap.node文件会不存在. 如果不需要多倍发包可以无视这个错误.

Srar commented 6 years ago

啊 等等这个好像是我提供的Release我看看我是不是忘记把cap.node放进去了

EjiHuang commented 6 years ago

是的,我下载的是您最新提交的Release

Srar commented 6 years ago

您在cmdpowershell中运行会出现这个错误吗?

EjiHuang commented 6 years ago

会的

Srar commented 6 years ago

方便使用teamviewer或别的远程工具来调试吗...因为光看日志的话我貌似想不出原因.

EjiHuang commented 6 years ago

请稍等

EjiHuang commented 6 years ago

899 373 ***


Srar commented 6 years ago

好像我这teamviewer超过5分钟会强制断开, 不知道是否能加下tg或者qq?

Srar commented 6 years ago

已经发出申请了