this post was submitted on 25 Mar 2024
12 points (92.9% liked)

Node.js

187 readers
2 users here now

founded 9 months ago
MODERATORS
top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 3 months ago* (last edited 3 months ago)

I use fnm instead, because using elaborate shell scripts sounds terrifying.

[–] kautau 2 points 3 months ago (1 children)

I much prefer https://github.com/tj/n, it’s a more elegant solution imo

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago) (1 children)

I never used this app but it looks like it just does what nvm already does. What exactly makes n more elegant than nvm?

From what I'm seeing, n drops the ball on Windows support, which nvm handles well.

[–] kautau 1 points 3 months ago (1 children)

Doesn’t create symlinks or mess with global NPM packages. Also, nvm is only supported on windows through WSL or cygwin, just like n, not sure where you are getting nvm for windows. There’s this, it’s a different application https://github.com/coreybutler/nvm-windows

[–] [email protected] 0 points 3 months ago (1 children)

Doesn’t create symlinks or mess with global NPM packages.

That's hardly relevant for those who need to run node on Windows and WSL is not an option.

Also, nvm is only supported on windows through WSL or cygwin, just like n, not sure where you are getting nvm for windows.

Just yesterday I installed it through chocolatey on a Windows box without WSL.

Also, it seems you failed to notice that nvm makes references to cygwin and git-bash, the later of which everyone who installs Git ends up having in their system.

[–] kautau 2 points 3 months ago (1 children)

Yes, you installed this

https://community.chocolatey.org/packages/nvm#description

Which as I said, is this

https://github.com/coreybutler/nvm-windows

It’s stated right in the readme

But your parent post is a link to the POSIX version of nvm, and my comment about n was specifically about that

[–] [email protected] 2 points 3 months ago

You have a point. Thanks for taking the time to go through this. Good job.