The problems are the same on the real hardware, however. Note: For most of my testing, I'm not using a real Raspberry Pi, but a VM with Debian Linux 10.8 and a Raspberry Pi desktop. Nodejs is already the newest version (10.24.0~dfsg-1~deb10u1).Ġ upgraded, 0 newly installed, 0 to remove and 2 not upgraded. If I try to install again, I get: $ sudo apt-get install -y nodejs Could that be the issue? My intention was to deliberately install 12 instead of 14 in this installation script if I detect less than 2GB RAM, because I think 14 might require more than 1GB to run reliably. I'm trying to to get this to work with a Raspberry Pi 3B+ with only 1GB RAM. This sort of works, but then I get warnings every time I use npm that npm isn't really meant to be used with Node 10.Īm I perhaps missing some prerequisite for version 12, and being automatically downgraded to version 10? and make the installation of npm explicit. An SD card is needed to install an operating system for the raspberry pi and store your node.js. I'm also finding that npm isn't installed unless I instead do: sudo apt-get install -y nodejs npm Raspberry pi Power supply of raspberry pi SD card of minimum 8 GB Ethernet cable (one time use) Wifi To start writing your first node.js program in raspberry pi, you obviously need a raspberry pi first with its power supply (5v, 1 to 2 amp). What would cause this, and how do I stop it from happening? When the installation is done, however, I check the version with node -version, and I've got v10.24.0 instead. I'm trying create a bash installation script to install Node.js version 12 on a Raspberry Pi using: curl -sL | sudo bash.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |