我按照nodejs的wiki上说明的在ubuntu里面安装好了,但是查看版本是0.10.36并不是官网上给出的当前的版本0.12.0。那么安装v0.12.0就只能通过源码编译吗?
我按照nodejs的wiki上说明的在ubuntu里面安装好了,但是查看版本是0.10.36并不是官网上给出的当前的版本0.12.0。那么安装v0.12.0就只能通过源码编译吗?
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
I am sorry that i dont have chinese input method on Ubuntu :(
5 回答4.8k 阅读✓ 已解决
4 回答2.5k 阅读✓ 已解决
2 回答1.7k 阅读✓ 已解决
2 回答1.3k 阅读✓ 已解决
3 回答2k 阅读
5 回答1.9k 阅读
1 回答3.2k 阅读
可以使用nvm进行node的版本管理与更新
也可以使用n
贴一个以前用的PPA源,不过貌似作者很久也没更新了
https://launchpad.net/~chris-lea/+archive/ubuntu/node.js
这个网站也蛮有意思