chore: Update navigation structure in documentation
This commit is contained in:
83
docs/documentation/raspberryPi/nodeJs/nodeSetup.md
Normal file
83
docs/documentation/raspberryPi/nodeJs/nodeSetup.md
Normal file
@@ -0,0 +1,83 @@
|
||||
# NodeJs Setup
|
||||
|
||||
https://pimylifeup.com/raspberry-pi-nodejs/
|
||||
|
||||
## Installation
|
||||
|
||||
1. Update the package list and install the dependencies by running the following commands:
|
||||
|
||||
```bash
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt install -y build-essential libssl-dev
|
||||
|
||||
```
|
||||
|
||||
2. Download the Node.js source code by running the following command:
|
||||
|
||||
```bash
|
||||
|
||||
wget https://nodejs.org/dist/v14.15.4/node-v14.15.4.tar.gz
|
||||
|
||||
```
|
||||
|
||||
3. Extract the Node.js source code by running the following command:
|
||||
|
||||
```bash
|
||||
|
||||
tar -xzf node-v14.15.4.tar.gz
|
||||
|
||||
```
|
||||
|
||||
4. Change to the extracted directory by running the following command:
|
||||
|
||||
```bash
|
||||
|
||||
cd node-v14.15.4
|
||||
|
||||
```
|
||||
|
||||
5. Configure the Node.js source code by running the following command:
|
||||
|
||||
```bash
|
||||
|
||||
./configure
|
||||
|
||||
```
|
||||
|
||||
6. Compile the Node.js source code by running the following command:
|
||||
|
||||
```bash
|
||||
|
||||
make -j4
|
||||
|
||||
```
|
||||
|
||||
7. Install the Node.js source code by running the following command:
|
||||
|
||||
```bash
|
||||
|
||||
sudo make install
|
||||
|
||||
```
|
||||
|
||||
8. Verify that Node.js has been installed by running the following command:
|
||||
|
||||
```bash
|
||||
|
||||
node -v
|
||||
|
||||
```
|
||||
|
||||
9. Verify that npm has been installed by running the following command:
|
||||
|
||||
```bash
|
||||
|
||||
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.
|
Reference in New Issue
Block a user