You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added meteorhacks:npm to my project, but I can't get either Meteor.npmRequire or Npm.require to work. Both functions come up undefined. The console will say either "Meteor.npmRequire is not a function" (and logging it reveals that it's undefined), or "Npm is undefined."
Here's my code:
Meteor.startup(function(){//neither of these lines work.varBackbone=Meteor.npmRequire("backbone");//var Backbone = Npm.require("backbone");});
I added meteorhacks:npm to my project, but I can't get either
Meteor.npmRequire
orNpm.require
to work. Both functions come up undefined. The console will say either "Meteor.npmRequire is not a function" (and logging it reveals that it's undefined), or "Npm is undefined."Here's my code:
packages.json
Meteor packages
The text was updated successfully, but these errors were encountered: