Ubuntu installs the specified version: nodejs

To install the specified or latest version of nodejs through PPA, you need to use nodesource to install the specified version of nodejs. It requires downloading a script. Running this script will add a nodejs source to ubuntu, and then use apt to download the specified nodejs.

The full name of PPA is personal package archive. To install the nodejs 12.x version, you can run the following command:

cd ~
curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash - 
sudo apt-get update
sudo apt-get install nodejs

This article is published by mdnice multi-platform

Guess you like

Origin blog.csdn.net/qq_37462361/article/details/132561253