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

Node.js

218 readers
1 users here now

founded 1 year ago
MODERATORS
top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 9 months ago (1 children)

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

[–] lysdexic 1 points 9 months ago* (last edited 9 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.

[–] [email protected] 1 points 9 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

[–] lysdexic 0 points 9 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.

[–] [email protected] 2 points 9 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

[–] lysdexic 2 points 9 months ago

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

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago)

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