just installed new ubuntu vm to test around with node
installed things in this order:
node
mongodb-server
npm
express
mongoose
now, trying to create a new app i noticed express cannot be used in the shell.
express -v returns
express: command not found
i installed npm like this
curl http://npmjs.org/install.sh | sudo sh
and i installed express this way
npm install express
any ideas?
npm install express -gYou need to install it globally.
Npm 1.0 installs modules locally by default. So the bash executable lives in
/node_modules/bin/. You can add that folder toPATHor you can just installexpressglobally so that it’s picked up byPATH