I have a really simple Node JS application and I would like to enable Express JS . I installed Express with NPM (and NPM with Homebrew) without any errors using:
brew install npm
npm install express
And my file server.jscontains only:
var express = require('express');
When I run my application, I get Error: Cannot find module 'express'. How can I tell my Node application to include a library?
source
share