DoctorMcKay / node-websocket13

Lightweight pure-JS websocket support
https://www.npmjs.com/package/websocket13
MIT License
4 stars 1 forks source link

Module not found: Can't resolve 'tls' #2

Closed Wounded-Knee closed 2 years ago

Wounded-Knee commented 3 years ago

I'm experiencing a cryptic error.

error - ./node_modules/@doctormckay/stdlib/components/http/proxyagent.js:3:0
Module not found: Can't resolve 'tls'
null
node:internal/process/promises:227
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[Error: EACCES: permission denied, stat '/initrd.img'] {
  errno: -13,
  code: 'EACCES',
  syscall: 'stat',
  path: '/initrd.img'
}

I am using ws13 in a standard way. No proxy. No SSL.

var WS13 = require('websocket13');
const ws = new WebSocket(wsUrl, {
        pingInterval,
        pingTimeout,
        pingFailures,
});
DoctorMcKay commented 3 years ago

Are you able to require('tls') in your own code?