4 ms·
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 pa
by madeofpalk 8y ago
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.
- rane 8y agoI 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.
- kace91 8y agoI currently have this problem on my zsh setup - is there any easy fix for it?
- madeofpalk 8y agoidk about zsh, but for fish there is https://github.com/FabioAntunes/fish-nvm 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`