Install fnm
CentOS Install fnm node
Section titled “CentOS Install fnm node”第一步 安装 git
Section titled “第一步 安装 git”# 安装yum install git# 查看版本git --version
第二步 安装 fnm
Section titled “第二步 安装 fnm”curl -fsSL https://lihaha-cn-web-static-1256651264.cos.ap-shanghai.myqcloud.com/i.sh | bash
第三步 安装 node
Section titled “第三步 安装 node”# 列出所有远程node.js版本[别名:ls-remote]fnm ls-remote# 安装 16fnm install 16# 查看下载的node列表fnm ls# 设置默认版本fnm defalut 16# 查看 node 版本node -vnpm -v
第四步 安装 nrm
Section titled “第四步 安装 nrm”# 安装npm install nrm -g# 查看源nrm ls# 切换源nrm use taobao