export N_NODE_MIRROR=https://npmmirror.com/mirrors/node sudo -E n stable 淘宝的镜像不可用 安装使用sudo,所以需要加-E来保证使用了当前环境变量