nvm管理nodejs
当前我本地的代码部分需要在nodejs16上运行,AI的claude code 需要在nodejs24上运行,需要进行切换;
可以使用nvm进行nodejs的切换和管理;
nvm list available :查看可在线安装的NodeJS版本

nvm ls:列出所有已经在NVM中安装的NodeJS版本。
nvm current:显示当前正在使用的Node版本。
nvm install xx.xx.xx:在NVM中在线安装指定版本的NodeJS,xx.xx.xx为指定的版本号。
nvm uninstall xx.xx.xx:在NVM中卸载指定版本的NodeJS,xx.xx.xx为指定的版本号。
nvm use xx.xx.xx:切换NodeJS版本,xx.xx.xx为指定的版本号。
nvm version:显示当前所使用的NVM的版本号。
本文来自博客园,作者:code0101,转载请注明原文链接:https://www.cnblogs.com/cmct/p/21023394
浙公网安备 33010602011771号