node.js - 怎么安装nodejs的最新版本?
阿神
阿神 2017-04-17 11:35:22
[Node.js讨论组]

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

阿神
阿神

闭关修行中......

全部回复(3)
怪我咯

可以使用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

这个网站也蛮有意思

ringa_lee

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号