DEV Community

Nam Hoang
Nam Hoang

Posted on

NVM tips and tricks

1. How to uninstall nvm?

just remove directory

rm -rf $NVM_DIR ~/.npm ~/.bower
Enter fullscreen mode Exit fullscreen mode

https://github.com/nvm-sh/nvm/issues/298#issuecomment-30654686

2. Install NVM with .nvm being installed in a different directory

Simply set $NVM_DIR before running the install script

export NVM_DIR=$(pwd)/workspace/.nvm && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
Enter fullscreen mode Exit fullscreen mode

https://github.com/nvm-sh/nvm/issues/1436

Top comments (0)