windows下升级node&npm

一、升级npm

npm install -g npm

二、升级node

1、查询node的安装目录

where node

2、在官网下载最新的安装包,直接覆盖安装即可。

https://nodejs.org/zh-cn/

原文地址:https://www.cnblogs.com/lanleiming/p/9040365.html