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".
相关推荐
yuxb7327 分钟前
Ansible 学习笔记:变量事实管理、任务控制与文件部署
linux·运维·笔记
爱敲代码的边芙36 分钟前
实习两个月总结
服务器
岚天start1 小时前
Linux sar命令详细使用指南
linux·运维·服务器·负载·sar·磁盘io·sysstat
wanhengidc5 小时前
当云手机出现卡顿怎么办?
运维·服务器·安全·智能手机
元清加油10 小时前
【Golang】:函数和包
服务器·开发语言·网络·后端·网络协议·golang
炫友呀11 小时前
Centos 更新/修改宝塔版本
linux·运维·centos
向日葵.12 小时前
fastdds.ignore_local_endpoints 属性
服务器·网络·php
昵称为空C14 小时前
SpringBoot接口限流的常用方案
服务器·spring boot
Peter_Deng.14 小时前
Linux 下基于 TCP 的 C 语言客户端/服务器通信详解(三个示例逐步进阶)
服务器·c语言·网络
花小璇学linux15 小时前
imx6ull-驱动开发篇24——Linux 中断API函数
linux·驱动开发·嵌入式软件