Updating NodeJS

Mocko requires NodeJS 12 or newer. You can update it using the n utility. First, install n using npm, you might need sudo for Linux or Mac:

npm i -g n

Now you can use n to update your node version, you might need sudo for Linux or Mac again:

n stable

Now you are ready to mock :)