![]() curl -sL sudo -E bash - Now run the following command to install Node.js. I appreciate it if any of you have some idea how to upgrade the version of the nodejs to the LTS version, 14.16.1. Installing Node.js in RaspberryPI Open the terminal and run the following command. In our 'nodetest' directory create a new directory we can use for static html files: piw3demopi:/nodetest mkdir public. I also try with nvm but with the same result, when I type 'nodejs -v' I get 'no such file or directory' and when I type 'node -v' I get the same version, 10.24.0. Following the earlier chapters in this Node.js tutorial, lets set up a web server that can serve HTML files. I try this: $ sudo su # apt-get remove nodered # apt-get remove nodejs nodejs-legacy # apt-get remove npm # curl -sL | sudo bash # apt-get install nodejs # node # npm -v Then I try upgrade the Nodejs version but it doesn't work because whatever way I used to upgrade, the version stays the same. Install Nodejs and NPM on Raspberry Pi Step-by-Step Step 1: Update and Upgrade Your System Step 2: Check the Node Version You Need to Download Step 3. At the time of this writing, the latest stable version of node.js was v10.11.0. If everything went as expected, we can check the installed version of node.js by running node -v. After that, when I verify the version of node, using 'node -v' or 'nodejs -v' I get 'v10.24.0'. Next, we will install the latest version of node.js using apt-get. I installed Raspberry Pi Desktop on an old laptop and then I installed nodejs using 'sudo apt install nodejs'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |