> On 12 Dec 2014, at 18:49, 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.
TL;DR: That's the way node works and always has. > + 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? > > + I don't want a virtual machine, just something comparable to venv in python > (http://docs.python-guide.org/en/latest/dev/virtualenvs/) > > I don't have anything conflicting, but just like the idea of being able to > delete the folder and start from scratch without changing the system at all... npm has two modes: local and global. It's normal to put app dependencies locally -- list them in package.json, and use npm install to install them all. Commonly, programmer's tools are installed globally, shared among apps. That said, you can install those tools locally so different projects can have different versions. I highly recommend it. You run them with ./node_modules/.bin/command rather than just command -- and listing them in scripts in package.json, you can use 'npm run foo' as a shortcut to them. Aria -- 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/FC76EF4D-636C-417F-AE86-EDA9C6768B4E%40nbtsc.org. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME cryptographic signature
