Node.js


Installing Node.js All Versions

v0.1
v0.2
v0.3
v0.4
v0.5
v0.6
v0.7
v0.8
v0.9
v0.10
v0.11
io.js v1.0
io.js v1.1
io.js v1.2
io.js v1.3
io.js v1.4
io.js v1.5
io.js v1.6
io.js v1.7
io.js v1.8
io.js v2.0
io.js v2.1
io.js v2.2
io.js v2.3
io.js v2.4
io.js v2.5
io.js v3.0
io.js v3.1
io.js v3.2
io.js v3.3
v4.0
v4.1
v4.2
v5.0
v5.1
v5.2
v5.3
v5.4
v5.5
v0.12
v4.3
v5.6
v5.7
v4.4
v5.8
v5.9
v5.10
v5.10.1
v5.11.0
v6.0.0
v5.11.1
v6.1.0
v6.2.0
v6.2.1
v6.2.2
v5.12.0
v6.3.0
v6.3.1
v6.4.0
v6.5.0
v6.6.0
v6.7.0
v6.8.0
v6.8.1
v6.9.0
v6.9.1
v7.0.0
v7.1.0
v7.2.0

This draft deletes the entire topic.

Introduction

Introduction

expand all collapse all

Examples

  • 13

    Node Version Manager, otherwise known as nvm, is a bash script that simplifies the management of multiple Node.js versions.

    To install nvm, use the provided install script:

    $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash
    

    Then install the latest Node version:

    $ nvm install node
    

    You can also install a specific Node version, by passing the major, minor, and/or patch versions:

    $ nvm install 6
    $ nvm install 4.2
    

    To list the versions available for install:

    $ nvm ls-remote
    

    You can then switch versions by passing the version the same way you do when installing:

    $ nvm use 5
    

    You can set a specific version of Node that you installed to be the default version by entering:

    $ nvm alias default 4.2
    

    To display a list of Node versions that are installed on your machine, enter:

    $ nvm ls
    

    When Node is installed via nvm we don't have to use sudo to install global packages since they are installed in home folder. Thus npm i -g http-server works without any permission errors.

  • 6

    All Node.js binaries, installers, and source files can be downloaded here.

    You can download just the node.exe runtime or use the Windows installer (.msi), which will also install npm, the recommended package manager for Node.js, and configure paths.

  • 4

    You can install Node.js using the Homebrew package manager.

    Start by updating brew:

    brew update
    

    You may need to change permissions or paths. It's best to run this before proceeding:

    brew doctor
    

    Next you can install Node.js by running:

    brew install node
    

    Once Node.js is installed, you can validate the version installed by running:

    node -v
    
Please consider making a request to improve this example.

Syntax

Syntax

Parameters

Parameters

Remarks

Remarks

Still have a question about Installing Node.js? Ask Question

Topic Outline