Ubuntu安装指定Node版本

https://github.com/nodesource/distributions

可以参考上面的项目,哪个版本都能装

以Ubuntu安装18.X为例:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\ sudo apt-get install -y nodejs
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

 

Leave a Reply

Your email address will not be published. Required fields are marked *