Express doesn't work on ubuntu Express doesn't work on ubuntu express express

Express doesn't work on ubuntu


found it. the npm package is actually named express-generator

sudo npm install -g express-generator

you can then use

express mytestapp

that results in :

olivier@****:~/workspace$ express mytestappcreate : mytestappcreate : mytestapp/package.jsoncreate : mytestapp/app.jscreate : mytestapp/publiccreate : mytestapp/public/javascriptscreate : mytestapp/public/stylesheetscreate : mytestapp/public/stylesheets/style.csscreate : mytestapp/routescreate : mytestapp/routes/index.jscreate : mytestapp/routes/users.jscreate : mytestapp/viewscreate : mytestapp/views/index.jadecreate : mytestapp/views/layout.jadecreate : mytestapp/views/error.jadecreate : mytestapp/bincreate : mytestapp/bin/wwwcreate : mytestapp/public/imagesinstall dependencies: $ cd mytestapp && npm installrun the app: $ DEBUG=my-application ./bin/www

Cheers !Olivier

Source : http://expressjs.com/guide.html#executable


For me the solution was simply to install the nodejs-legacy package:

sudo apt-get install nodejs-legacy


First thing to try is if the plugin is installed:

$ npm -g ls | grep express

If nothing is returned, try reinstalling it.

Since in this case it was still installed, the next solution was to reinstall Node entirely.

There is a great post on cleaning up Node installations here: Uninstall Node.JS using Linux command line?