Does using Npm.depends/require require Node to be installed?


#1

Just a thought. Does Meteor come with an internal Node installation, and if so, does Npm.depends work with that? Or does it require an actual installation on your machine?


#2

Npm works on the server. Just make sure to run it in the server folder or within isServer.

Available under Npm. Example:
var fs = Npm.require(‘fs’);


#3

Yeah, but does Npm.depends rely on the internal Node that comes with Meteor or an outside installation?


#4

I havn’t tested those parts out too much just yet, but perhaps you should look into
https://atmospherejs.com/meteorhacks/npm ?

Still working on understanding the meteor build up myself. I’d assume by default it’s the bundled one but I assume an argument can force meteor to run on a custom node. You can bundle meteor to run it on a node server for production use at least!


#5

Having a similar problem with Npm. I added underscore.string:underscore.string, but I cannot include it with Npm.requires. What’s the deal with that?


#6

Yes, Meteor ships with its own internal Node.js installation.

No