When I type: echo $path
in the terminal on Mac, I get this:
/Users/myname/.nvm/versions/node/v5.7.0/bin
I needed to upgrade node.js to version 6, so when I upgraded it for some reason now I have two versions installed v5.7.0
and v6.11.0
. How can I modify the path so it points to the version v6.11.0
, i.e. the path becomes:
/Users/myname/.nvm/versions/node/v6.11.0/bin
I modified .bash_profile
the as follows:
#!/bin/bash
export PATH=$HOME/.nvm/versions/node/v6.11.0/bin:$PATH
source ~/.bashrc
But my path does not change.