I tried to use http-proxy today using a global install, but the module could not be found. A local install worked fine. FYI I was running a simplified node script without any packages, just a web-server.js file.
DOES NOT WORK
npm install -g http-proxy
-> Error: Cannot find module 'http-proxy'
npm install http-proxy
Thanks for a great module!
Is the installation failing? The error message you're posting looks like it comes from trying to require() a module that you don't have. You probably want to install it locally.
From the npm documentation:
This is how node module works. @ruquay is right here.