My version of node is always v0.6.1-pre even after I install brew node and NVM install v0.6.19.
My node version is:
In my case none of the other answers worked because I previously downgraded to node8. So instead of doing above, following worked for me:
which node
which returned /usr/local/bin/node@8
instead of /usr/local/bin/node
so i executed this command:
brew uninstall node@8
which worked and then downloaded latest pkg from official site and installed. After that I had to close my terminal and start again to access new version