Installing Node.js & Node Packaged Modules (npm) on Amazon EC2 Debian

This is a quick guide to installing Node.js and Node Packaged Modules (npm) on Amazon EC2 Debian instance.

There’s a number of ways to install Node.js, here’s two common ones.

The following examples are for Node.js v0.10.13.

Method 1:

It uses Node Version Manager (nvm) to manage the installation of multiple Node.js and npm versions.

1. Install required packages

2. Clone the Node Version Manager (nvm) repository from github.com

3. To activate nvm, you need to source it from your bash shell.

4. Add nvm to ~/.profile file to have it automatically sourced upon login.

5. Check the Node.js latest stable version from the Node.js website

http://www.nodejs.org/

6. Download and compile Node.js & npm.

7. Set v0.10.13 the default version to be used. This will add ~/.nvm/v0.10.13/bin to the PATH environment variable.

 

Method 2:

It uses the usual configure / make / make install procedure.

 

 

I hope this is useful to you. If you have any comments or suggestions, please let me know in the comment section below.

Further reading:

You may also like

3 Response Comments

  • Paul  November 1, 2015 at 12:49 am

    Hence, it is very important to come with a write up that everybody
    can understand, not necessarily that these people can relate to it but they can understand it.
    You can even customize many elements of the
    book including cover, images, specific posts, specific comments, etc.
    Do stream line and will be very benefits to you later part.

    Reply
  • Karolin  November 23, 2015 at 8:36 pm

    Un nouveau régime amaigrissant peut vous aider à perdre du poids temporairement.

    Reply
  • Hiram  December 1, 2015 at 9:26 pm

    Si vous allez à une fête ou, si vous sortez pour une occasion spéciale, permettez-vous un écart.

    Reply

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter a message.