Hi, I found that if I just run "npm install xxx" while in the main Node.js directory, the modules would be created in a node_modules directory directly under the main Node.js directory, and then, I could use the modules from running node in any directory.
On Tuesday, January 17, 2017 at 9:20:09 PM UTC-5, O haya wrote: > > Hi, > > I am working on a web app project where I use Express and also node-java. > > The Express documentation indicates to create a directory for my app and > then run the "npm install express --save" inside that directory. Since my > web app uses node-java, I then build gyp, java, and node-java under that > directory. > > However, I may have several apps, including this Express app, that will > use node-java. > > Is there way to build the node-java stuff such that I can use node-java in > multiple applications, without having to rebuild the node-java under each > project? > > Sorry if this is a kind of newbie question and also I wasn't sure if this > question might be better in the Express group or here. > > Thanks, > Jim > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/d622e4e9-9fbf-497e-8537-dad4cf7b8319%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
