问题 Mac上装好node后,使用npm install安装依赖时,终端却提示zsh: command not found 解决方案 【1】在~目录下创建.zshrc文件; 【2】编辑source ~/.bash_profile至.zshrc文件中; 【3】source ~/.zshrc; cd ~ touch .zshrc echo 'source ~/.base_profile' > .zshrc source ~/.zshrc