建议先装n,再用n把node升级到最新稳定版:
$ npm install -g n
$ n stable
Mac下升级node到最新版本
原文:https://www.cnblogs.com/xuzhudong/p/8310384.html