wscat command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
wscat: command not found
or when using sudo you get the following error message
sudo: wscat: command not found
Solutions to wscat: command not found
How To Fix wscat: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu wscat is provided by node-ws package.
node-ws is:
ws is a simple to use websocket implementation, up-to-date against RFC-6455, and probably the fastest WebSocket library for Node.js.
Passes the quite extensive Autobahn test suite. See http://einaros.github.com/ws for the full reports.
It also provides wscat, a command-line tool which can either act as a server or a client, and is useful for debugging websocket services.
Node.js is an event-based server-side javascript engine.
To fix this problem, we can install more using the command below.
sudo apt-get -y install node-ws
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install node-ws.
sudo apt -y install node-ws
Or if you have aptitude installed you can use the following command.
sudo aptitude install node-ws
Summary
In this tutorial we learn how to fix wscat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.