Re:Node v6.6.0
by kough on Thursday September 15, 2016 @07:00PM
(#12510578)
This is sort of an insane suggestion. Why use a Python distribution to install Node?
[ Parent
| on HN ]
It's pretty sane if you are also a python programmer. I personally can no longer keep track of how I installed/set up my environments and would much prefer everything under a single package manager (instead of pip, easy install, eggs, virtual env, apt-get, nvm, npm, docker, brew, macports, etc etc).
That's exactly what Nix [1] tries to accomplish. You should look into it.
I have been using it for about six months and has worked very well for me, especially for haskell and python development.
I came across it back in 2014 and have been meaning to check it out since. Do y'all have a how-to-build-a-package walkthrough?
The Nix manual is a good start: http://nixos.org/nix/manual/#chap-quick-start
Then there are a lot tutorial about setting up a development environment for a particular language. See:
go: http://lethalman.blogspot.it/2015/02/developing-in-golang-wi...
haskell: https://ocharles.org.uk/blog/posts/2014-02-04-how-i-develop-...
python: http://datakurre.pandala.org/2015/10/nix-for-python-develope...
node.js: http://sandervanderburg.blogspot.it/2014/10/deploying-npm-pa...
I recommend reading Luca Bruno's blog for learning Nix internals and more advanced topics.
Conda is not a python package manager. It's just a package manager. You can keep all kinds of software in your home folder.
The biggest advantage for me is using conda environments to avoid having to install everything globally. That way if I want to switch back and forth between python2 and python3 or different versions of node, I can just do `source activate foo`.
For Node.js you can use NVM for the same purpose. It is specially suited for handling multiple node verions and installs everything to user's directory.
Nvm sucks at npm link. If you use npm link and nvm things will break. Thats why you should use n instead.
yea, but you can't also use it for installing a particular version of MongoDB or Postgres.