There are several options. The recommended would be NVM.
Their website provides instructions to install nvm.
Then fix your node version to a sensible one:
nvm install 6
nvm use 6npm installnpm run testsnpm startsrc: source codetests: the tests