Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by giancarlostoro on Thursday January 24, 2019 @07:51AM
(#18988178)
Sometimes you're limited in production by whatever version the OS supports. In the case of Debian installing nodejs doesn't necessarily land you the latest and greatest. The same happens with Python as well. I wish they had a good way to abstract this in Debian and I'm surprised Ubuntu hasn't fully resolved it, I mean Ubuntu does have Snap but I can't trust Snaps fully if the language vendors aren't backing the only available Snaps. But to account for systems where the only version of Node or Python, or whatever is a specific version, you need systems like this.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by h1d on Thursday January 24, 2019 @11:22AM
(#18990035)
Why don't you just install the official 'deb' package with the version of your choice?
https://github.com/nodesource/distributions/blob/master/READ...
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by jjuel on Thursday January 24, 2019 @09:30AM
(#18988936)
You can absolutely install the newest version of Python and Node on Debian. It is a little harder than just an `apt-get install`, but very possible.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by Spivak on Thursday January 24, 2019 @11:15AM
(#18989954)
Of course you can install it. In many environments it's not considered maintainable to deviate from the distro provided and supported version. Especially when you have support contracts from your OS vendor.
If devs want something different from the distro provided libs we typically ask that they use containers or otherwise vendor them.
Ideally we would like our software to depend on the system for the bare minimum and security critical libs like OpenSSL so that Ops is free to switch out the underlying platform with minimal friction.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by h1d on Thursday January 24, 2019 @11:18AM
(#18990002)
I have a development server that has some projects mainly written by someone else and one of them specify an old version of nodejs as dependency which breaks by using latest LTS (and I'm too lazy to figure out how to make someone else's code to work on latest LTS) but I don't want to turn nodejs for the entire server to an old LTS.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by badhombres on Thursday January 24, 2019 @07:46AM
(#18988141)
When I write lambda code for my job, our code currently only supports the node 6 for it's runtime (our system automatically deploys it). I use nvm to help test my code all the time while still having the ability to switch to a more current node for other projects
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by devmunchies on Thursday January 24, 2019 @08:37AM
(#18988495)
Are you running your projects directly on your machine? Your’re not using a VM or containers? Don’t you have the “but it works on my machine” problem?
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by badhombres on Thursday January 24, 2019 @03:37PM
(#18992667)
We only run it for quick tests. This is custom code that our main application uses for custom logic that is different for each customer. We can't build it into the main product because not everyone wants/needs it. We always test on the lambdas directly, but we just dev on our machine as that's sometimes quicker.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by maktouch on Thursday January 24, 2019 @10:02AM
(#18989222)
We never had that issue with node
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by Touche on Thursday January 24, 2019 @09:47AM
(#18989087)
Here's a couple of use cases:
You maintain a library and you support more than just the latest version of Node. You switch to test compatibility.
You work on a project with a team. Some members of the team work on other projects with other versions of Node. They need to be able to switch.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by schroffl on Thursday January 24, 2019 @07:47AM
(#18988153)
It's nice to have this when you need to debug issues which only occur on certain versions. A good example would be the recent change of the c++ addon api, which caused my code to crash on some installations while it worked fine on others.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by csixty4 on Thursday January 24, 2019 @07:47AM
(#18988155)
For us, it's about developing on the same node version used in production. That's necessary if you're not deploying to a containerized environment or you're using something completely out of your control like AWS Lambda.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by bepvte on Thursday January 24, 2019 @07:58AM
(#18988214)
the main reason i use nvm is because its the only way i can use npm i -g.....
Re:Show HN: Fnm – Fast and simple Node.js version manager bu...
by josteink on Thursday January 24, 2019 @08:14AM
(#18988312)
You dont need to nvm to do that. You just need to set an alternate "global" path inside your home-directory, instead of one in /usr/lib/node which requires root.
https://stackoverflow.com/questions/14742553/how-to-set-cust...
What particular problems or projects do you have where this is a pressing necessity?
I just install latest LTS and keep that up to date, and I've yet to find a single thing not working.