nvm切换nodejs版本报错:exit status 5 exit status 1: – MasterH's Grocery Store

nvm切换nodejs版本报错:exit status 5 exit status 1:

当我们在用nvm切换node版本时,可能会出现以下报错:
file
原因是因为没有以管理员身份运行命令,鼠标右键windows图标,以管理员身份运行Windows 终端
file
先列举下已有的node版本,然后再指定某个版本进行切换,如下图所示
file
命令:

nvm list
nvm use 14.17.0

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *