Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save gadelkareem/110994d377b6cf27e70a97754118dcff to your computer and use it in GitHub Desktop.

Select an option

Save gadelkareem/110994d377b6cf27e70a97754118dcff to your computer and use it in GitHub Desktop.

Revisions

  1. @davps davps revised this gist Sep 20, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-nodejs-on-raspberrypi-armv6.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Steps to install nodejs v6.2 on Raspberry Pi B+ (armv6)
    ```
    cd ~
    wget https://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
    wget http://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
    tar -xzf node-v6.2.1-linux-armv6l.tar.gz
    node-v6.2.1-linux-armv6l/bin/node -v
    ```
  2. @davps davps revised this gist May 13, 2017. No changes.
  3. @davps davps revised this gist May 13, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-nodejs-on-raspberrypi-armv6.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #Steps to install nodejs v6.2 on Raspberry Pi B+ (armv6)
    # Steps to install nodejs v6.2 on Raspberry Pi B+ (armv6)
    ```
    cd ~
    wget https://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
  4. @davps davps revised this gist Jan 13, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-nodejs-on-raspberrypi-armv6.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #Steps to install a new version of nodejs on Raspberry Pi B+ (armv6)
    #Steps to install nodejs v6.2 on Raspberry Pi B+ (armv6)
    ```
    cd ~
    wget https://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
  5. @davps davps created this gist Jan 13, 2017.
    30 changes: 30 additions & 0 deletions install-nodejs-on-raspberrypi-armv6.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    #Steps to install a new version of nodejs on Raspberry Pi B+ (armv6)
    ```
    cd ~
    wget https://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
    tar -xzf node-v6.2.1-linux-armv6l.tar.gz
    node-v6.2.1-linux-armv6l/bin/node -v
    ```
    The last command should print v6.2.1.

    Now you can copy it to `/usr/local`

    ```
    cd node-v6.2.1-linux-armv6l/
    sudo cp -R * /usr/local/
    ```
    For testing add /usr/local/bin to your path

    ```
    export PATH=$PATH:/usr/local/bin
    node -v
    npm -v
    ```
    This should print 6.2.1 and 3.9.3 for the versions of nodejs and npm. If you need a different version, just pick the one you like from the downloads.

    Don't forget to add the PATH to your .bashrc to make it permanent.

    To find the correct architecture, you can type `uname -m`

    #Source
    http://raspberrypi.stackexchange.com/a/48313