websockets / wscat

WebSocket cat
MIT License
2.25k stars 223 forks source link

Error: Cannot find module 'commander' #104

Closed HWiese1980 closed 5 years ago

HWiese1980 commented 5 years ago

I'm getting the following error message. Tried it with wscat installed through sudo apt install node-ws and by cloning this repo. Both have the same result:

module.js:550
    throw err;
    ^

Error: Cannot find module 'commander'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/user/wscat/bin/wscat:11:17)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)

Sorry, some details:

lpinca commented 5 years ago

Use npm to install the package.

npm i -g wscat