Lotus@ 2012-04-09 16:02 采纳率: 100%
浏览 3318
已采纳

将 Node.js 升级到最新版本

So, I have Node.js installed and now when I tried to install Mongoosejs I got an error telling me that I don't have the needed version of Node.js (I have v0.4.11 and v0.4.12 is needed).

How can I upgrade to this version? I suppose I just could install it again with the latest version, but I don't want to do it before I'm sure that my project folders in the folder "node" won't be deleted.

转载于:https://stackoverflow.com/questions/10075990/upgrading-node-js-to-latest-version

  • 写回答

26条回答 默认 最新

  • csdnceshi62 2012-04-09 16:06
    关注

    Linux/Mac:

    The module n makes version-management easy:

    sudo npm install n -g
    

    For the latest stable version:

    sudo n stable
    

    For the latest version:

    sudo n latest
    

    Windows:

    just reinstall node from the .msi in Windows from the node website.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(25条)

报告相同问题?

悬赏问题

  • ¥15 vue3页面el-table页面数据过多
  • ¥100 vue3中融入gRPC-web
  • ¥15 kali环境运行volatility分析android内存文件,缺profile
  • ¥15 写uniapp时遇到的问题
  • ¥15 vs 2008 安装遇到问题
  • ¥15 matlab有限元法求解梁带有若干弹簧质量系统的固有频率
  • ¥15 找一个网络防御专家,外包的
  • ¥100 能不能让两张不同的图片md5值一样,(有尝)
  • ¥15 informer代码训练自己的数据集,改参数怎么改
  • ¥15 请看一下,学校实验要求,我需要具体代码