How to add /usr/local/bin in $PATH on Mac

前端 未结 6 1425
臣服心动
臣服心动 2020-12-07 08:39

When I do \'open .profile\' in the terminal I have the following:

export PATH=$PATH:/usr/local/git/bin 

Now I installed node.js for Mac and

6条回答
  •  被撕碎了的回忆
    2020-12-07 09:13

    In MAC OS Catalina, this are the steps that worked for me, all the above solutions did help but didn't solve my problem.

    1. check node --version, still the old one in use.
    2. cd ~/
    3. atom .bash_profile
    4. Remove the $PATH pointing to old node version, in my case it was /usr/local/bin/node/@node8
    5. Add & save this to $PATH instead "export PATH=$PATH:/usr/local/git/bin:/usr/local/bin"
    6. Close all applications using node (terminal, simulator, browser expo etc)
    7. restart terminal and check node --version

提交回复
热议问题