Open mrunderhill89 opened 9 years ago
Both these apis are only available on the server side. On 2015 අප්රේල් 24, සිකු at පෙ.ව. 7.36 mrunderhill89 < notifications@github.com> wrote:
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.
Here's my code:
Meteor.startup(function(){ var Backbone = Meteor.npmRequire("backbone"); });
packages.json
{ "react-three": "0.6.0", "backbone": "1.1.2" }
Meteor packages
meteor-platform autopublish insecure davidcittadini:three mquandalle:bower meteorhacks:npm npm-container
— Reply to this email directly or view it on GitHub https://github.com/meteorhacks/npm/issues/83.
That would explain it. Thanks!
Shall we close this issue then :) On 2015 අප්රේල් 24, සිකු at පෙ.ව. 7.54 mrunderhill89 < notifications@github.com> wrote:
That would explain it. Thanks!
— Reply to this email directly or view it on GitHub https://github.com/meteorhacks/npm/issues/83#issuecomment-95777896.
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