Search code examples
node.jschocolatey

'node -v' shows wrong version after 'choco upgrade nodejs'


enter image description here

After upgrading node using chocolatey I type in the command node -v and it returns the wrong version number. Some one solved the same issue with homebrew here using an override command.

How can I solve this problem using chocolatey?


Solution

  • Start by making sure you restart bash. I've seen the versions not update in the same window I used to install the new version. If that doesn't do it then I would also remove the old version of node.

    The where node command is helpful for finding that pesky old version.