Nodejs - The best way to install Nodejs on Linux(Amazon Linux, Ubuntu)

If you install the nodejs on Linux(Amazon Linux, Ubuntu) using the nodejs installer, permission problems could happen when you use Yeoman, Bower, Grunt and so on.
After I tried the nodejs installation in several ways, eventually I knew the best way is to avoid using ‘sudo’ permission while installing the nodejs.