ubuntu install nodejs

The installation of the latest version of nodejs is different from the old version. There is no configure file in the nodejs folder. Here is how to install the latest version of nodejs on ubuntu.

Download the latest nodejs compressed file, for example

wget https://nodejs.org/dist/v8.1.0/node-v8.1.0-linux-x64.tar.xz

Unzip###

tar -xvf node-v8.1.0-linux-x64.tar.xz

View the path where the current node is

cd node-v8.1.0-linux-x64/bin
pwd

View node version###

. /node -v

Set node and npm as global###

sudo ln /home/ubuntu/node-v8.1.0-linux-x64/bin/node /usr/local/bin/node
sudo ln /home/ubuntu/node-v8.1.0-linux-x64/bin/npm/usr/local/bin/npm
pwd

If there are already node and npm under the /usr/local/bin file, you can delete these two files and execute the link

sudo cp /usr/local/bin/node /usr/sbin/

Execute node -v in any directory to check whether the current node version is the latest version

Recommended Posts

ubuntu install nodejs
ubuntu16.04 install node.js, npm
ubuntu18.04 install python2
How to install Node.js on Ubuntu 16.04
ubuntu18.04 install docker
ubuntu12.04 install python3
Ubuntu install guide
ubuntu 16 install asp.net
ubuntu install leanote
ubuntu install Jenkins
Install nodejs and npm under Ubuntu 16.04
docker install ubuntu
ubuntu install elasticsearch
ubuntu16.0.1 install pagoda
CentOS install nodejs 8
ubuntu18.04 install python
ubuntu 18.04 install teamviewer
ubuntu install sendmail
Install apache+PHP under Ubuntu
Install mysql-pytho in Ubuntu
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install python3.6 under Ubuntu 16.04
Nodejs install on centos7
Ubuntu18.04 install opencv 3.2.0 solution
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Install Docker on ubuntu18.04
CentOS6.8 install node.js npm
Install Node.js on Centos
ubuntu install harbor warehouse
Install mysql on Ubuntu 14.04
Ubuntu16.04 install Mongodb tutorial
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
2018-09-11 Install arduino under Ubuntu
Install Python3 on Ubuntu 14.04
Ubuntu18.04 install Asterisk16.10 + FreePBX15.0
Ubuntu19 install MySQL pit
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
pcduino ubuntu install os
Install python in Ubuntu
Install JDK in Ubuntu19.10
Install Python3 on Ubuntu 16.04
Install ROS under ROS Ubuntu 18.04[2]
Install MySQL under Ubuntu
Install KDE on Ubuntu16.04.2
ubuntu install nginx server
Install Yarm-PM2 under Ubuntu
Install Docker on Ubuntu18
Install Python3.7 on Ubuntu
Install flashplayer on Ubuntu
ubuntu: install camera driver
ubuntu14.04 install jdk1.8 tutorial
Docker practice (1): install Docker on Ubuntu 16.04
ubuntu16.04 install caffe cpu version