I am running Ubuntu 14.04 64 bit. I was able to install Node.js using the following commands:
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
It worked. I tried to install Express with the following command:
sudo npm install -g express --save
This gave the following output:
/usr/lib
`-- express@4.13.4
However, when I tried to test it, it did not work. I used the following commands:
mkdir test
cd test
express
This threw an error that Express was not installed.
How can I get the npm install to work?