Ah, that makes sense and that helped a little bit! But now I'm getting a different error saying that it can't find the module 'request'. Here's the trace:
module.js:340
throw err;
^
Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (<PATH REDACTED>/github/tumblr.js/index.js:2:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Any help with this one? And I didn't quite have the right code before (I didn't have access to the file and was going off of memory). The actual code is below.
This is a file that I've called tumblrpractice.js and is in the root directory of the tumbr.js folder I downloaded from Github.
var tumblr = require('./index.js');
var client = tumblr.createClient({
consumer_key: '<REDACTED>',
consumer_secret: '<REDACTED',
token: '<REDACTED>',
token_secret: '<REDACTED>'
});
client.blogInfo('<BLOG NAME>.tumblr.com', function (err, data) {