每当我在 nodejs 中遇到错误时,错误都会显示不正确,如下所示:
Error: not opened
at WebSocket.send (C:\Users\strik\node_modules\[4mws[24m\lib\WebSocket.js:219:16)
at getClanData (C:\Users\strik\Desktop\Programs\JavaScriptCoding\KBot3\index.js:167:9)
at Object.<anonymous> (C:\Users\strik\Desktop\Programs\JavaScriptCoding\KBot3\index.js:308:1)
[90m at Module._compile (internal/modules/cjs/loader.js:955:30)[39m
[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)[39m
[90m at Module.load (internal/modules/cjs/loader.js:811:32)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:723:14)[39m
[90m at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)[39m
[90m at internal/main/run_main_module.js:17:11[39m
Nodejs 版本:
node -v
12.14.1
npm -v
6.13.4
据我所知,所有 nodejs 错误输出都像这样