更新时间:2023-01-14 23:25:07
我的问题已按照评论中的@ theWanderer4865建议解决.
My problem was solved following @theWanderer4865 suggestions in the comments.
首先,我在执行的终端中卸载了通过brew:安装的节点版本:
First, I uninstalled the node version I had installed through brew: in the terminal I executed:
> brew cleanup
> brew uninstall node
第二,我通过运行删除了已安装的所有其他节点版本:
Second, I removed all other node versions I had installed by running:
> rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
第三,使用 nvm
重新安装节点:
Third, install node again using nvm
:
> nvm install node