How to install the specified version of node on ubuntu: 1. Open the command window; 2. Execute "wget -qO-https://deb.nodesource.com/setup_8.x | sudo -E bash -sudo apt- get..." command to install it.
The operating environment of this article: ubuntu 16.04 system, nodejs version 10.16.2, Dell G3 computer.
How to install the specified version of node on ubuntu?
ubuntu Install the latest or specified version of nodejs
Install 8.x
wget -qO- https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs
Install 10.x
wget -qO- https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt-get install -y nodejs
For other systems, you can check the installation method on the official website
Official installation document
Recommended study: "node.js video tutorial"
The above is the detailed content of How to install the specified version of node on ubuntu. For more information, please follow other related articles on the PHP Chinese website!