简体   繁体   中英

Installing node.js with express module

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 express@4.11.1: 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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM