Nodejs V14.16.1 LoongArch版本更新说明
更新说明
- 硬件环境:3A5000
- 架构信息:loongarch64
一、安装说明
下面介绍下Node.js V14.16.1的安装,我们使用默认的软件源来安装nodejs。
1.1 在Debian系下安装:
# 更新软件源
[test@bogon:~]$ sudo apt update
# 安装Node.js
[test@bogon:~]$ sudo apt install nodejs
1.2 在RedHat系下安装:
# 更新软件源
[test@bogon:~]$ sudo dnf makecache --refresh
# 安装Node.js
[test@bogon:~]$ sudo dnf install nodejs
1.3 验证安装版本
若此前通过nvm安装过其他版本,先清理环境变量:
[test@bogon:~]$ unset NVM_DIR="$HOME/.nvm"
再验证版本:
[test@bogon:~]$ node -v
V14.16.1
若提示“未找到命令”或版本不符,需重新检查安装步骤