安装nodejs brew install node虽然方便,但是如果网络不稳定将会耗费不少时间。 这种情况下通过下载安装包的方式,或许更为方便: https://nodejs.org/en/#download 安装完毕!