更新node.js版本命令: npm install -g n 升级node.js到最新稳定版 n stable npm设置源与查看源 //设置淘宝源npm config set registry https://registry.npm.taobao.org//查看源,可以看到设置过的所有的源npm config get registry