Update install node on ubuntu post
This commit is contained in:
parent
0499123d1f
commit
f53cb5ec0f
|
@ -4,13 +4,15 @@ title = "Installing Node.js and NPM on Ubuntu/Debian"
|
||||||
tags = ["Linux", "Ubuntu", "debian", "nodejs", "devops", "node", "npm"]
|
tags = ["Linux", "Ubuntu", "debian", "nodejs", "devops", "node", "npm"]
|
||||||
slug = "installing-node-js-and-npm-on-ubuntu-debian"
|
slug = "installing-node-js-and-npm-on-ubuntu-debian"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
This is just short snippet on how to install Node.js (any version) and NPM (Node Package Manager) on your Ubuntu/Debian system.
|
This is just short snippet on how to install Node.js (any version) and NPM (Node Package Manager) on your Ubuntu/Debian system.
|
||||||
|
|
||||||
|
|
||||||
## Step 1 - Update your system
|
## Step 1 - Update your system
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install git-core curl build-essential openssl libssl-dev
|
sudo apt-get install git-core curl build-essential openssl libssl-dev python
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 2 - Install Node.js
|
## Step 2 - Install Node.js
|
||||||
|
@ -18,7 +20,7 @@ sudo apt-get install git-core curl build-essential openssl libssl-dev
|
||||||
First, clone the Node.js repository:
|
First, clone the Node.js repository:
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
git clone https://github.com/joyent/node.git
|
git clone https://github.com/nodejs/node.git
|
||||||
cd node
|
cd node
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -26,11 +28,13 @@ Now, if you require a specific version of Node:
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
git tag # Gives you a list of released versions
|
git tag # Gives you a list of released versions
|
||||||
git checkout v0.4.12
|
git checkout v13.10.1
|
||||||
```
|
```
|
||||||
|
|
||||||
Then compile and install Node like this:
|
Then compile and install Node like this:
|
||||||
|
|
||||||
|
<small>This might take a while, depending on your hardware.</small>
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
|
@ -59,3 +63,8 @@ npm -v
|
||||||
|
|
||||||
That's all.
|
That's all.
|
||||||
|
|
||||||
|
_Updated 2020-03-11_
|
||||||
|
|
||||||
|
* Use the new nodejs/node repo
|
||||||
|
* Install correct dependencies, including python\
|
||||||
|
* Update example node version to v13.10.1_
|
||||||
|
|
Loading…
Reference in New Issue
Block a user