NOTE: This does not work properly on newer versions of nodejs, will have a look at creating an up to date version.
If it does not work properly for you try doing this in a Docker container with an older version of node:
docker run node:0.10 /bin/bash
This works properly on Bash on Ubuntu on Windows because Ubuntu 14.04 has quite an old version of Node in the repositories.
sudo apt-get install nodejs-legacy npm