admin 管理员组

文章数量: 888297

mac下安装node.js6 ,【并使用zsh】

Mac下使用brew 安装node.js V6 > brew install node@6 
安装完以后,在zsh下运行.  > node -v
提示 command not found: node.
使用下面命令查看 > brew info node@6
在提示信息中才发现,需要运行下面命令将node@6的path加入到 .zshrc
> echo 'export PATH="/usr/local/opt/node@6/bin:$PATH"' >> ~/.zshrc 

本文标签: mac下安装nodejs6 ,并使用zsh