News for hackers. Stuff that matters.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu... by madeofpalk on Thursday January 24, 2019 @05:32AM (#18987472)
The problem I have with nvm is speed (running it at shell startup introduces a very noticeable delay), and integration with other shells - it's always been a pain to get it running with fish.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu... by rane on Thursday January 24, 2019 @06:03AM (#18987619)
I generally use only a single node version, and therefore don't use the nvm command much, so I've solved the slow shell init by not loading nvm at all, and instead, just set the PATH.

    export PATH=~/.nvm/versions/node/v11.6.0/bin:$PATH
Downside is that you have to bump the version occasionally but it's worth the fast shell startup.
Re:Show HN: Fnm – Fast and simple Node.js version manager bu... by kace91 on Thursday January 24, 2019 @06:45AM (#18987841)
I currently have this problem on my zsh setup - is there any easy fix for it?
Re:Show HN: Fnm – Fast and simple Node.js version manager bu... by madeofpalk on Thursday January 24, 2019 @07:00AM (#18987912)
idk about zsh, but for fish there is https://github.com/FabioAntunes/fish-nvm which delays executing nvm until you use one of the node binaries. Essentially, node is aliased to `nvm activate && node`