I installed request module, and getting the error:
module.js:340
throw err;
^
Error: Cannot find module \'request\'
i\'ve read
ReferenceError: Can't find variable: require.
You have installed "npm", you can run as normal the script to a "localhost" "127.0.0.1".
When you use the http.clientRequest() with "options" in a "npm" you need to install "RequireJS" inside of the module.
A module is any file or directory in the node_modules directory that can be loaded by the Node. Install "RequiereJS" for to make work the http.clientRequest(options).
I tried installing the module locally with version and it worked!!
npm install request@^2.*
Thanks.