Install Nvm to install Node by following instructions here. Nvm allows you to switch to different versions of Node to manage dependencies. Install Component after Node is properly setup from here. Component is an assets management tool for the client side. After Nvm, Node and Component are working properly, make a directory on the desktop and change to it.
Make an index.html and component.json file in the root of the folder.
Input the following to component.json. The name can be whatever you want it to be, but the important dependencies are in the development key. Component/assert is needed because Mocha does not have an assertion library by default.
Input the following to index.html:
Install and build with component. The -d flag is used because mocha is intended for use in development mode.
component install -d
Open the index.html file and you will be greeted with the following: