Reputation: 1030
I'm on latest stable debian
I am able to do apt-get install nodejs
but cannot install npm with apt, so I compiled from wget http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz
and everything looks good.
Now I want to install the express module globally and did sudo npm install -g express
but I get this warning:
npm WARN engine [email protected]: wanted: {"node":">= 0.10.0"} (current: {"node":"v0.8.16","npm":"1.1.69"})
then typing express
in the commandline says command not found. What am I doing wrong?
Upvotes: 1
Views: 197
Reputation: 1030
I was on the old version. I needed to get the latest one from here:
http://nodejs.org/dist/latest/node-v0.10.36.tar.gz
Then running the commands after untaring
./configure
make
sudo make install
Then npm install -g express
Upvotes: 1