怎么安装nodejs的最新版本?

我按照nodejs的wiki上说明的在ubuntu里面安装好了,但是查看版本是0.10.36并不是官网上给出的当前的版本0.12.0。那么安装v0.12.0就只能通过源码编译吗?

阅读 6.6k
3 个回答

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 :(

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题