Should I install npm modules for Meteor in / usr / lib or / usr / local?

Q Where do we place the node modules that we install on npm in a Meteor project? The accepted answer indicates what you should install with this command:

cd / usr / local / meteor / lib / & && npm install

But process.env tells me that $ NODE_PATH /usr/lib/meteor/lib/

Does this mean that the correct place to install node modules (for local use, for example, Chai) is now /usr/lib/meteor/lib/ instead of /usr/local/meteor/lib/ ?

Most questions about this date back to April / May of '12, and in mid-June of '12, it seems that a change has been made to the way NODE_PATH is installed. https://github.com/meteor/meteor/commit/b7632579296257c10bf640a5f00716c3d440de71

+2
npm meteor
Jan 13 '13 at 14:55
source share
1 answer

.meteor / local / build / server / node_modules is a symbolic link to the directory in which you want to install the module.

0
Feb 27 '13 at 23:12
source share



All Articles