linux安装node版本管理工具(nvm和fnm)

linux安装node版本管理工具nvm和fnm

安装nvm

bash 复制代码
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash

# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"

# Download and install Node.js:
nvm install 16

# Verify the Node.js version:
node -v # Should print "v16.20.2".
nvm current # Should print "v16.20.2".

# Verify npm version:
npm -v # Should print "8.19.4".

安装fnm

bash 复制代码
# Download and install fnm:
curl -o- https://fnm.vercel.app/install | bash

# Download and install Node.js:
fnm install 16

# Verify the Node.js version:
node -v # Should print "v16.20.2".

# Verify npm version:
npm -v # Should print "8.19.4".
相关推荐
chase。1 小时前
关于 nvidia-smi: no devices were found 解决方案
服务器·数据库·postgresql
福旺旺3 小时前
Linux——解压缩各类文件
linux
MasterLi80235 小时前
我的读书清单
android·linux·学习
ha20428941946 小时前
Linux操作系统学习之---初识网络
linux·网络·学习
飞凌嵌入式6 小时前
【玩转多核异构】T153核心板RISC-V核的实时性应用解析
linux·嵌入式硬件·嵌入式·risc-v
陌路206 小时前
Linux 34TCP服务器多进程并发
linux·服务器·网络
玉树临风江流儿6 小时前
Linux驱动开发实战指南-中
linux·驱动开发
爱喝矿泉水的猛男6 小时前
单周期Risc-V指令拆分与datapath绘制
运维·服务器·risc-v
科技块儿6 小时前
【IP】公有&私有IP地址?
服务器·网络协议·tcp/ip
灵神翁6 小时前
自建node云函数服务器
运维·服务器