The new version of Express (4.0) itself does not have a bin folder. You must install express-generator in order to get the settings.
Express 4.0 has made significant changes. In particular, the transfer of intermediaries and assistants to external modules.
If you need to start and run something right away, you need to install Express 3, and then find out how to start Express 4 when you have more time.
First make sure you have ./node_modules/.bin in your $ PATH. Then...
npm install " express@3.x " express
Or, if you have time to learn the differences in Express 4, you can get up and running by installing express-generator .
npm install express-generator express
IMPORTANT : make sure you have ./node_modules/.bin in the $ PATH shell variable. Executable files in Node modules are linked in the ./node_modules/.bin directory. Having in your path makes it easy to run these executable files without entering the entire path and without adding them around the world. Adding them all over the world is a bad idea if you are working with multiple projects and need to maintain backward compatibility with older projects.
TIP . You can find a list of Express intermediaries and helpers on Github .
Daniel
source share