首页 > 解决方案 > 在我的 Ubuntu 1804 上安装 v12.18.2 后如何安装节点 8.10.x

问题描述

这个问题和标题中描述的差不多。我已经安装了nodejs(认为它是由apt-get安装的),版本是12.18.2。现在,我想安装 8.10。我该怎么做?

标签: node.jsubuntu-18.04

解决方案


为此,您可以在安装后安装作为节点版本管理器的 nvm,您可以运行命令

nvm ls-remote //this will list all the available node version
nvm install v8.10.0 // this will install the node 8.10.0
nvm ls //this will list all the current installed node

nvm use v8.10.0 //this to switch between version 

推荐阅读