Node works in terminal, but not in tty

Hello my fellow Linux people:

When I run a terminal from the GUI (ctrl + alt + t) and run the Nodejs REPL, it works fine. However, if I run a TTY (ctrl + alt + f1) and run Nodejs REPL or try to use npm, it returns these are not installed.

More info:

  • On TTY I use the same username as when logged into the GUI.
  • Installed node/npm via nvm.
  • Possibly didn't install nvm as sudo (might be the problem).
  • Using Ubuntu 14.10.

This doesn't really affect my work flow, however, I found it odd.

Ideas?

Sounds like tty is a different shell version or doesn't load in the start up scripts and set environment variables in the same way...?