1.2 KiB
1.2 KiB
NodeJs Setup
https://pimylifeup.com/raspberry-pi-nodejs/
Installation
- Update the package list and install the dependencies by running the following commands:
sudo apt update
sudo apt install -y build-essential libssl-dev
- Download the Node.js source code by running the following command:
wget https://nodejs.org/dist/v14.15.4/node-v14.15.4.tar.gz
- Extract the Node.js source code by running the following command:
tar -xzf node-v14.15.4.tar.gz
- Change to the extracted directory by running the following command:
cd node-v14.15.4
- Configure the Node.js source code by running the following command:
./configure
- Compile the Node.js source code by running the following command:
make -j4
- Install the Node.js source code by running the following command:
sudo make install
- Verify that Node.js has been installed by running the following command:
node -v
- Verify that npm has been installed by running the following command:
npm -v
Conclusion
You should now have Node.js installed on your Raspberry Pi. This installation will allow you to run JavaScript applications on your device.