To install a specific version run: nvm install To install node, you could choose to install the latest version of node or a specific version of node. nvmĬheck that nvm is present on your machine by running: nvm -version To your bashrc or zshrc file add the line below export NVM_DIR = ~ /. Have a look at the official page on github ( ).Īt the time of writing this article the latest version is 0.37.2 curl -o - https : / /raw. Always check for the latest version of nvm. brew uninstall -ignore -dependencies nodeĭownload the version of nvm you want to use. If you already had node installed, the first thing to do is to uninstall it, that's if it was installed using homebrew. Here, I explain exactly how I achieve that, after many failed attempts. I had always maintained a single version of node until it became imperative to use different versions for different environments. With every new library and upgrade in javascript libraries, many times running into issues with node versions while installing dependencies is inevitable.
0 Comments
Leave a Reply. |