• 首先我们先来查看下版本

    npm -v
    node -v
  • npm的升级办法

     npm install npm@latest -g
  • node 的升级办法

    • 清除npm cache

      sudo npm cache clean -f
    • 安装 n 模块

      sudo npm install -g n
      • 安装最新的稳定版本(也可以自己选择版本sudo n 版本号)
       sudo n stable
Last modification:October 24, 2020
If you think my article is useful to you, please feel free to appreciate