I've searched the wiki modules page, but I can't find anything similar to virtualenv (python) or rvm.
Anyone here separates node.js in their own env? I really don't like to install npm system-wide.
I've searched the wiki modules page, but I can't find anything similar to virtualenv (python) or rvm.
Anyone here separates node.js in their own env? I really don't like to install npm system-wide.
If you like it simple, I truely recommend visionmedia's n, could not be easier!
https://github.com/visionmedia/n
If having system wide npm packages is your main issue, then maybe consider using the very cool 'bundle' command with npm. This is closer to freezing gems or using bundler in rails, rather than rvm.
It's super easy. Just create a package.json file:
and then run:
or if your npm version is >= 1.0 run:
to freeze into the vendor directory. and then use: