简体   繁体   English

无法升级到节点版本0.10.35之后

[英]Can't upgrade beyond node version 0.10.35

I recently got an email from MongoDB to update my drivers to be compatible with the new MongoDB 3.0 我最近收到了MongoDB的电子邮件,以更新驱动程序以与新的MongoDB 3.0兼容

I am trying to up my Node.js to version "1.4.29". 我正在尝试将Node.js升级到版本“ 1.4.29”。 Currently I am the running the node version "0.10.35". 当前,我正在运行节点版本“ 0.10.35”。

How can I upgrade node.js driver via NPM to 1.4.29 to be compatible with MongoDB 3.0? 如何通过NPM将node.js驱动程序升级到1.4.29以与MongoDB 3.0兼容?

I have tried the following: 我尝试了以下方法:

 npm install g -n

I also tried this: 我也试过这个:

在此处输入图片说明

It just won't install any version higher then 0.10.35, Its stuck at the version. 它只是不会安装任何高于0.10.35的版本,它停留在该版本上。 In the image above you can see it starts of my install node version 4.0 but ends up with 0.10.35 which I already have. 在上图中,您可以看到它从我的安装节点版本4.0开始,但最终以我已经拥有的0.10.35结尾。

Which I was told would get the latest version of node but that did not seem to work. 有人告诉我可以获取最新版本的node,但似乎不起作用。

Thanks in advance. 提前致谢。

First you need to clean the cache and then start the up gradation process. 首先,您需要清除缓存,然后启动升级过程。 Use the below commands in the NodeJS command window to upgrade to latest version. 在NodeJS命令窗口中使用以下命令升级到最新版本。

npm cache clean
npm update -g

If you desire to install specific version of node then use the command sudo n 0.12.2 如果要安装特定版本的节点,请使用命令sudo n 0.12.2

Reference taken from How to upgrade Node.js via NPM 来自如何通过NPM升级Node.js的参考

The way to install the new versions of node with n is to use this command n <version> . 使用n安装新版本的node的方法是使用此命令n <version> For example use n 5.1.0 for the latest version of nodejs. 例如,将n 5.1.0用作最新版本的nodejs。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android firefox 25及更高版本无法重定向到任何地方? - Android firefox version 25 and beyond Can't redirect anywhere? 我无法在 Raspberry Pi Desktop 上将 nodejs 版本从 10.24.0 升级到 14.16.1(LTS) - I can't upgrade nodejs version from 10.24.0 to 14.16.1(LTS) on Raspberry Pi Desktop 由于 node 和 webpack 版本冲突,无法安装依赖项 - can't install dependencies because of node and webpack version conflict 我的终端查不到node版本,npm也不能用,提示如下信息 - My terminal can't check the version of node and npm can't use, and it prompts the following information d3js 切换到版本 4:无法再在单击时更改节点和节点邻居半径 - d3js switching to version 4 : can't change node and node neighbors radius on click anymore 在“for…of”循环/迭代中的第一次迭代后无法读取 null - Can't read beyond first iteration in “for…of” loop / iteration is null 如何在DOM中“升级”jQuery版本? - How can I “upgrade” the jQuery version within the DOM? 在 Windows 10 上安装后 node.js 无法检查版本 - node.js can't check version after installation on windows 10 Node.js 服务器生成的 HTML 网页是否可以在初始写入后与服务器通信而无需重新加载? - Can an HTML webpage generated by a Node.js server communicate with the server beyond the initial write without reloading? Node/NPM:如果我升级我的节点版本,我应该重建包锁定文件吗? - Node/NPM: If I upgrade my node version, should I rebuild the package-lock file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM