Also, if you need to switch between different versions of node you can use nvm
https://github.com/creationix/nvm My 2 cents, Javi El 13/12/2014 01:27, "John Shaver" <[email protected]> escribió: > > > On Dec 12, 2014 5:04 PM, "Sachinthya Wagaarachchi" <[email protected]> wrote: > > > > I am starting to learn Node and MEANJS at the same time, and want to have a development folder that is independent. I don't know how to go about it... I have used Mongo and AngulaJS with Pyramid. Here's what I think I want. (Using linux mint, btw) > > > > + I want an independent environment that doesn't change the system. For instance, when I develop using Pyramid, I use a python virtual environment which I can basically delete without effecting the system. I don't know if Node has something like that. > > > + If that's not possible, what's the best way to have sort of two independent decoupled projects on the same system but with different (and maybe conflicting) dependancies? > > You don't have to see install modules globally, you can install them to the directory. That might be the simple solution. npm install -g installs the module for the whole system. Without the g switch (default) it installs for just the current directory and sub directories. > > > + I don't want a virtual machine, just something comparable to venv in python (http://docs.python-guide.org/en/latest/dev/virtualenvs/) > > I'm pretty new to node myself, but I'm not aware of anything similar to venv. The local modules takes care of module versions, but not the version of node itself. > > I know you said no virtual machines, but Vagrant is really quite nice to work with, although it takes a bit of setup. > > -John > > > -- > 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/CAMbK04wsRowPUCh97YisvqmHdP334EH3pD5g%3Dqwgyf7tbwmEHA%40mail.gmail.com . > > For more options, visit https://groups.google.com/d/optout. -- 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/CABpL_NfRya3CWH%2BdMKgeS8EKEDfX7cjAmuAJ6x2qd_xEt0q_8g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
