It is very convenient that cloud 9 includes NVM “in the box”. Unfortunately, the NVM set up is not quite correct. The script lines to configure it are provided by default in the ~/.profile file, so they are only available in a “login shell”. They don’t work, without extra work, if you try to use them in (for example) a script. This can be worked around, but is inconvenient.
Hopefully I’m not the only one to notice this, and others will join me in requesting that cloud 9 workspaces as created, set up NVM more correctly, and one of the other ~/.bash_* files, so that they are available in all bash contexts.