提示:
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/string-width failed, reason: certificate has expired
切换淘宝源到http或者更换其他国内镜像
npm config set registry http://registry.npm.taobao.org
npm config set registry https://registry.npmmirror.com