3 ms·
Nvm startup times are the worst. I use it to install npm versions, but then manually add those to my $PATH. There's a --no-use flag that short-circuits all the
by rustyminnow 5y ago
Nvm startup times are the worst. I use it to install npm versions, but then manually add those to my $PATH.
There's a --no-use flag that short-circuits all the heavy startup processing, but still gives you access to the command.
Here's a snippet from my zshrc:
```
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use
export PATH="$HOME/.nvm/versions/node/v14.17.6/bin:$PATH"
```