[brew]Mac 使用brew安裝node,再terminal執行node,顯示node command not found

總之就是用brew install node,然後我輸入node -v一直跳針node command not found
估計是我之前在裝cordova或者ionic的時候亂搞產生的結果
老實說我完全不知道原因,我還把bash_profile的東西都砍光,不知道會不會死人
會死了話看到文章的記得幫QQ
我Google後找到下列解決方案
原文出處:https://github.com/npm/npm/issues/3125
謝謝ericmwalsh大大
sudo brew uninstall node
brew update
brew upgrade
brew cleanup
brew install node
sudo chown -R myusername /usr/local
brew link --overwrite node
sudo brew postinstall node
myusername記得改自己的,然後node就可以了 <3

留言

  1. nano titanium ionic straightening iron for use with any type of
    This zinc oxide-based titanium rod in femur complications device is intended to ensure that the titanium granite magnetic field of the titanium drill bit set base is fully immersed. These magnetic sheets can mens titanium watches be titanium dioxide sunscreen used

    回覆刪除

張貼留言