banner
xingli

xingli

猫娘爱好者

nvm安装

在线安装#

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
#或者 如果wget不存在 执行yum -y install wget
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

刷新配置即可正常使用#

#刷新配置
source ~/.bashrc

#判断nvm是否安装
nvm -v

使用 nvm 下载相关 node 版本#

nvm install 18.16.0

#nvm常用命令
nvm uninstall 18.16.0     // 移除 node 18.16.0 
nvm use 18.16.0           // 使用 node 18.16.0 
nvm ls                   // 查看目前已安装的 node 及当前所使用的 node
nvm ls-remote            // 查看目前线上所能安装的所有 node 版本
nvm alias default 18.16.0  // 使用 18.16.0 作为预设使用的 node 版本
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.