如何在 Ubuntu 上将 Node js 版本升级到 0.12.4 [英] How to upgrade Node js version to 0.12.4 on Ubuntu
本文介绍了如何在 Ubuntu 上将 Node js 版本升级到 0.12.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在 Ubuntu 上升级 Node JS 版本.
I want to upgrade Node JS version on Ubuntu.
我尝试了很多命令,但它的版本仍然是旧的,即 v0.10.37.
I tried many commands but its version is still the older i.e v0.10.37.
我试过了:
sudo npm install -g n
sudo n install 0.12.4
sudo n use 0.12.4
也尝试过 nvm,但没有一个对我有用.如何将 Node Js 版本升级到 0.12.4?
Also tried with nvm but non of them works for me. How can I upgrade Node Js version to 0.12.4?
推荐答案
使用npm来升级node
先清理缓存再试试
sudo npm cache clean -f
sudo npm install -g n
sudo n 0.12.4
然后创建一个符号链接(只是偶尔需要,先试试这三个命令.如果不行就加这个.)
Then create a symbolic link(It is needed only sometimes, first try with these three commands. If it doesnot work add this.)
将更新到0.12.4
版本.
这篇关于如何在 Ubuntu 上将 Node js 版本升级到 0.12.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文