我按照nodejs的wiki上说明的在ubuntu里面安装好了,但是查看版本是0.10.36并不是官网上给出的当前的版本0.12.0。那么安装v0.12.0就只能通过源码编译吗?
可以使用nvm进行node的版本管理与更新
也可以使用n
贴一个以前用的PPA源,不过貌似作者很久也没更新了
https://launchpad.net/~chris-lea/+archive/ubuntu/node.js
sudo apt-get install python-software-properties -y
sudo add-apt-repository ppa:chris-lea/node.js -y
sudo apt-get update
sudo apt-get install nodejs npm
这个网站也蛮有意思
nvm,值得拥有
On Linux (Such as ubuntu, debian ),you can download the nodejs source code ,then cd this source code directory and run this bash:
./configuration
sudo make
sudo make install
Then,you will have the command of "node",you can view the nodejs's version using command:
node -v
And if you want uninstall the nodejs,you can run below command in nodejs source code directory:
sudo make uninstall
Good Luck and Have fun.
I am sorry that i dont have chinese input method on Ubuntu :(