node.js - 在我的 Ubuntu 1804 上安装 v12.18.2 后如何安装节点 8.10.x
问题描述
这个问题和标题中描述的差不多。我已经安装了nodejs(认为它是由apt-get安装的),版本是12.18.2。现在,我想安装 8.10。我该怎么做?
解决方案
为此,您可以在安装后安装作为节点版本管理器的 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
推荐阅读
- java - 加特林 HTTP 代理
- javascript - 基于用户输入的条件渲染
- flutter - TextField 的背景图片 - Flutter
- c++ - C++多级继承thunk对象指针调整
- mysql - 使用超过 1 个字段时,合并多个表的字段返回太多行
- c - 如何“重新声明”指向字符串的字符串指针?
- angularjs - TypeError: XXX undefined with AngularJS inline array annotation
- javascript - 将参数传递给另一个函数并返回更改的值不起作用
- cakephp - Cake Bake 生成的代码(脚手架)导致语法错误
- opencv - Grabcut 算法后的输出图像出现全黑 nothing init