Forked from davps/install-nodejs-on-raspberrypi-armv6.md
Created
September 21, 2024 10:54
-
-
Save gadelkareem/110994d377b6cf27e70a97754118dcff to your computer and use it in GitHub Desktop.
Revisions
-
davps revised this gist
Sep 20, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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 ``` -
davps revised this gist
May 13, 2017 . No changes.There are no files selected for viewing
-
davps revised this gist
May 13, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # 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 -
davps revised this gist
Jan 13, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ #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 -
davps created this gist
Jan 13, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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