Node.js - Why does my project says can't find module when it is installed globally

I installed express globally using the command "npm install -g express". I verified express is present in my /usr/local/bin/" directory.

However every time i create a new project and execute it says "Can't find module express".

When i install express locally using the command "npm install express" it works. Is this correct ?

According to the npm FAQ, globally-installed packages are only used for runnung the executables; they're not used in your projects, for projects to be self-contained entities not depending on the environment.

Also, if you have express installed globally, you can create a new express-based project using express command (see the "Quick Start" section of the express guide), it will save you from doing npm install express manually.