📌  相关文章
📜  更新节点两个版本 mac - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:17.059000             🧑  作者: Mango

代码示例1
// After installation/upgrading node via brew I ran into this issue exactly: the node command worked but not the npm command.
// I used these commands to fix it.
// From: https://stackoverflow.com/questions/5056115/how-to-install-latest-version-of-node-using-brew

brew uninstall node
brew update
brew upgrade
brew cleanup
brew install node
sudo chown -R $(whoami) /usr/local
brew link --overwrite node
brew postinstall node