当我执行此操作时,将返回以下内容: bash: expo: command not found 我发现这需要用export PATH=$PATH:~/node_modules更新.bash_profile然而,很明显,Mac OS Catalina从.bash_profile切换到了zprofile或zshrc。附言:我在一段时间前安装了anaconda,看到.bash_profile有这样的功能: # added by Anaconda3 5.0.1 installer
export PATH