查看当前版本 npm -v
更新到最新版本 npm install -g npm
更新到指定版本 npm -g install [email protected] (@后面加指定版本号)
啦啦啦~~希望能帮到小伙伴们呦