Install nodejs and npm under Ubuntu 16.04

Contents

Write in front

Recently, I have been tossing about using Ubuntu 16.04, which has a large number of users on the Internet, to build a Linux-based development environment, and I am ready to learn later on the Linux platform. Then I will tell you how to install nodejs under Linux. There are many solutions on the Internet. Here I am just making a record, not that there is something special about my party.

download###

First go to Official Website to download the corresponding version, here I am 64-bit

Move the installation package to the specified location and decompress the installation package###

Execute the following command

mv node-v8.9.3-linux-x64.tar.xz  /opt
cd /opt
tar -xvf node-v8.9.3-linux-x64.tar.xz

After decompression, enter the decompressed folder###

Execute the following command

cd node-v8.3.0-linux-x64

Set node and npm as global variables###

Execute the following command

ln -s /opt/node-v8.9.3-linux-x64/bin/node /usr/local/bin/nod
ln -s /opt/node-v8.9.3-linux-x64/bin/npm /usr/local/bin/npm

Enter other folders to test

Execute the following command

node -v   //
npm -v

At this point node and npm installation is complete

Recommended Posts

Install nodejs and npm under Ubuntu 16.04
Install node.js under Ubuntu
ubuntu16.04 install node.js, npm
ubuntu install nodejs
Install and deploy Gerrit under Ubuntu
Compile and install QEMU under Ubuntu
Configure node js and npm under Ubuntu 14.04
Install apache+PHP under Ubuntu
Install python3.6 under Ubuntu 16.04
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Install nodejs10 on Ubuntu16
CentOS6.8 install node.js npm
[python] python2 and python3 under ubuntu
2018-09-11 Install arduino under Ubuntu
Install ROS under ROS Ubuntu 18.04[2]
Install MySQL under Ubuntu
Install Yarm-PM2 under Ubuntu
How to install Node.js and npm on CentOS 8
Ubuntu 16.04 compile and install PHP 7.2
ubuntu18.04 compile and install python3.8
ubuntu install and configure GitLab
Install server-side Shadowsocks under Ubuntu 16.04
Ubuntu16.04 install SVN and configuration
Ubuntu16.04 install and uninstall VMware-Workstation 14
Install rgl package under Ubuntu
Compile and install OpenJDK8 from source code under Ubuntu 18.04.1
Cpp web (1) Install and use Crow service under Ubuntu
Install and configure keepalived under CentOS 5.9
Install and use dig under ubuntu/debian
Talk about | Install and use Linux system Ubuntu under Win10
Compile and install LAMP under Centos 5.2
How to install Node.js on Ubuntu 16.04
Install and configure MySQL on Ubuntu
Install 3 single-cell R packages under Ubuntu
Install and configure Docker in Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install JDK1.8 original under Ubuntu Kylin
Redis installation under ubuntu and windows
Small tool: install screenshot tool under ubuntu
Install Python3 and ansible under CentOS8
Install and use docker under CentOS 6.8
Install Python3 and Py under CentOS7
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Install the latest version of Thunderbird and exchange plugins under ubuntu
Install Gnome and VNC on Ubuntu Server
Compile and install libmodbus library under CentOS7
51 MCU program development and download under Ubuntu
Install linux (ubuntu) dual system under windows system
[Daily] Win10 open and install ubuntu subsystem
Installation and uninstallation of CUDA under Ubuntu 16.04
Install fonts on Ubuntu and switch default fonts
Ubuntu 18.04 source code compile and install ffmpeg4.1
Install YouCompleteMe plugin for vim under Ubuntu
Ubuntu install PHP and PHP Nginx configuration method
Install PyTesser under ubuntu 14.04 for OCR recognition