var request = require('sync-request');
but when I execute the .js script I get
Error: Cannot find module 'sync-request'
echo %NODE_PATH%
C:\Program Files\nodejs\node_modules\npm\node_modules
I've done the following...
npm init -y
npm install sync-request
npm install -g sync-request
Googled it....found all kinds of forum posts about it, but didn't find
anything that helps.
I'm not a nodejs expert but I bet some of you are.
Should I be using NODE_PATH....if so is NODE_PATH set correctly?
I can do a require on ('request') at it seems to work fine....so why do
some modules work and others not?
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/39609cfb-9786-46b9-bf7e-e06115f84252%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.