You need latest nodejs(v.10 or higher) and npm installed on your local machine. To check if you have installed nodejs, run the following commands :
node -v (it should be v10 or higher)
npm -vFollow these steps to run this code :
git clone https://github.com/floppylab/clean-code.git
cd clean-code/hangman/JavaScript
npm install
node hangman.js