When testing your Node.js application, it is useful to be able to start the application from the command-line. By default, cPanel does not add Node.js to your $PATH. The following will walk you through adding it
You may receive the following output when attempting to use Node after installation, or after you install a module from NPM:
/usr/bin/env: node: No such file or directory
To have Node be available for your modules on the command-line, or for it to be used directly on the command-line, you need to set the following environment variable:
After this, you should be able to use the Node command, or use the NPM module, you have installed.
To make this change permanent, you can modify your ~/.bashrc or ~/.bash_profile files for the user you want to have access to Node on the command line. Simply add the above command to one of those files, and on every login, it will be set automatically for you.
For more information on the ~/.bashrc file, see this article: How to set environmental variables in .bashrc