gpt4 book ai didi

node.js - 如何删除旧版本的 Node 并切换到新版本?

转载 作者:太空宇宙 更新时间:2023-11-03 22:08:41 24 4
gpt4 key购买 nike

当我node -v时,我得到v7.10.0

我已经安装了 brew install nodebrew Upgrade Node 我看到 9.5 已安装。

我做了 brew switch node 9.5.0 并为 /usr/local/Cellar/node/9.5.0 创建了 7 个链接

但是,当我重新打开终端时,我的 Node -v 仍然是 v7.10.0 :(

最佳答案

在这里找到答案,我需要删除我的 .nvm 文件夹

Unable to change version of node with brew switch

First of all, check if you installed your node with nvm by check if you have a .nvm directory in home directory ls -la if you do, remove that directory

关于node.js - 如何删除旧版本的 Node 并切换到新版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48893097/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com