DEV Community

Discussion on: How to fix "Unknown command nvm" on Linux

yoursunny profile image
Junxiao Shi

For me, the most common reasons of "unknown command nvm" are:

  • I just ran the nvm installer, but did not exit and restart the bash session, so that source did not happen.
  • I installed nvm in one user account and try to access it in another user account or sudo.
carstenbehrens profile image
Carsten Behrens Author

Yes its true. Nvm not being installed in the users directory is probably the most common error. I'll add this comment to this blog post, thanks for your great input.