15

I can't find the location of node.js installations, downloaded and installed via e.g.:

nvm install 5.0

Do you know the answer?

Boris Burkov
  • 13,420
  • 17
  • 74
  • 109

3 Answers3

30

nvm which 5.0 Will give you the path where that version of Node.js is installed

SlashmanX
  • 2,489
  • 18
  • 16
  • 2
    Thanks, man! (My bad, I overlooked the answer in the manual). In my case the path was `/home/bob/.nvm/versions/node/v5.4.1/bin/node`. – Boris Burkov Jan 13 '16 at 15:41
  • 2
    This answer is outdated. The `nvm root` answer should now be accepted. – Corné Jan 18 '22 at 00:31
12

My version of nvm (1.1.7) does not have nvm which. The command nvm root does show the "directory where nvm should store different versions of node.js".

rpfister51
  • 141
  • 1
  • 2
0

Another command that can be used to find where nvm installs various versions of Node.js:

which node

Note: It works only if your system is using a version of Node.js installed via nvm and not via some other route.

Abhishek
  • 3
  • 2