mac 找.zshrc文件,解决: command not found

Find the '.zshrc' file:

  • Open Terminal.  (打开终端)
  • Type open ~ to access your home directory.  (输入open ~)
  • Press Cmd + Shift + . to show the hidden files in Finder.  (按command +shift + .)
  • Locate the .zshrc. (在列表中找到.zshrc 用记事本打开)

Edit the '.zshrc' file:(编辑.zshrc后保存)

  • add: source /Users/_user_Name_/.bash_profile to the top of the file (where _user_Name_ stands for your user.(source /Users/YOUUSERNAME/.bash_profile或者source ~/.bash_profile)       

  • export PATH=~/.npm-global/bin:$PATH(export PATH=/user/local/share/npm/bin:$PATH)

  • Save the file, and close the Terminal window.(保存文本并退出终端)

猜你喜欢

转载自blog.csdn.net/m0_60437766/article/details/132117738