将 Node.js 升级到最新版本 [英] Upgrading Node.js to latest version
问题描述
所以,我安装了 Node.js,现在当我尝试安装 Mongoosejs 时出现错误,告诉我我没有所需的 Node.js 版本(我需要 v0.4.11 和 v0.4.12).
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).
如何升级到这个版本?我想我只能用最新版本重新安装它,但在我确定文件夹node"中的项目文件夹不会被删除之前,我不想这样做.
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.
推荐答案
Ubuntu Linux/Mac:
模块 n
使版本管理变得容易:
Ubuntu Linux/Mac:
The module n
makes version-management easy:
npm install n -g
对于最新的稳定版本:
n stable
对于最新版本:
n latest
视窗:
只需从 node 网站在 Windows 中从 .msi 重新安装节点.
Windows:
just reinstall node from the .msi in Windows from the node website.
这篇关于将 Node.js 升级到最新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!