# node, npm 升级

- Link: https://yjyj.net/learn/centos/6202.html
- Published: 2021-05-18T18:49:06+08:00
- Author: 小 虾

```language-shell
    # 先安装模块n
    npm install n -g
    # 将 node 升级到最新稳定版
    n stable

    # 将 npm 升级到最新版
    npm install npm -g
    # 如果要指定版本，可以通过@指定版本
    # npm install npm@3.10.10 -g 
    ```

📚 【[CentOS 学习](https://yjyj.net/category/learn/centos)】专栏延伸阅读与热门精选（
[全站文章归档](https://yjyj.net/archive)）：

 * [error: rpmdb: BDB0113 Thread/process 14323/139669979801664 failed: BDB1507 Thread died in Berkeley DB library 错误](https://yjyj.net/learn/centos/6180.html)
 * [国内服务器的 GitHub hosts](https://yjyj.net/learn/centos/6157.html)
 * [CentOS 7安装TCP BBR](https://yjyj.net/learn/centos/6204.html)
 * [甲骨文使用ssh登陆 – FinalShell](https://yjyj.net/learn/centos/6208.html)
 * 热门必读[DMIT 全线缺货, 只剩搬瓦工了](https://yjyj.net/discover/7787.html)
 * 热门必读[俩月了, DMIT 终于补货了!](https://yjyj.net/share/7795.html)
