node.jsoauthmeteornpmyahoo-boss-api

Specifics of using NPM within Meteor


I am trying to get OAuth working with Meteor.

I found an OAuth NPM, and now I'm trying to get it to be included in my Meteor project.

Here's what I'm trying:

I have a new folder next to the pre-made file called packages, and it's called "oauth".

Inside that folder, there is a single file called "package.js" and in there is:

Package.describe({
  summary: "Simple oauth"
});

Npm.depends({oauth: "0.9.10"});

And as part of the server-side code, it has:

Npm.require('oauth');

But I'm just getting an error of:

Error: Cannot find module 'oauth'

What, specifically, am I supposed to do?

This module doesn't have any dependencies, but I can't find any documentation on how this works.


Solution

  • Try following the process explained here - https://coderwall.com/p/srvdta