npm update -g
npm i npm g //npm更新到最新版本
npm安装报错certificate is not yet valid
原文:http://www.cnblogs.com/aivnfjgj/p/6411510.html