ubuntu下安装nodejs
2016-06-27 10:49
573 查看
NodeJS安装
Complete installation instructions have since been uploaded here by Nodesource. It is copied below for your reference. Instructions are the same for updating to the latest version.Node.js v5.x:
NOTE: If you are using Ubuntu Precise or Debian Wheezy, you might want to read about running Node.js >= 4.x on older distros.# Using Ubuntu curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_5.x | bash - apt-get install -y nodejs
Node.js v4.x:
NOTE: If you are using Ubuntu Precise or Debian Wheezy, you might want to read about running Node.js >= 4.x on older distros.# Using Ubuntu curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_4.x | bash - apt-get install -y nodejs
Node.js v0.12:
# Using Ubuntu curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_0.12 | bash - apt-get install -y nodejs
Node.js v0.10:
# Using Ubuntu curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_0.10 | bash - apt-get install -y nodejs
io.js v3.x:
# Using Ubuntu curl -sL https://deb.nodesource.com/setup_iojs_3.x | sudo -E bash - sudo apt-get install -y iojs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_iojs_3.x | bash - apt-get install -y iojs
io.js v2.x:
# Using Ubuntu curl -sL https://deb.nodesource.com/setup_iojs_2.x | sudo -E bash - sudo apt-get install -y iojs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_iojs_2.x | bash - apt-get install -y iojs
io.js v1.x:
Note: this branch of io.js is not actively maintained and is not recommended for production use.# Using Ubuntu curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo -E bash - sudo apt-get install -y iojs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_iojs_1.x | bash - apt-get install -y iojs
来源
https://github.com/nodesource/distributions#installation-instructions相关文章推荐
- Ubuntu 默认壁纸历代记
- Ubuntu Remix Cinnamon 20.04 评测:Ubuntu 与 Cinnamon 的完美融合
- 关于Ubuntu 11.10启动提示waiting for the network configuration的问题
- 在 Ubuntu 桌面中使用文件和文件夹
- ubuntu下chrome无法同步问题解决
- Ubuntu Linux使用体验
- 使用 GNOME 优化工具自定义 Linux 桌面的 10 种方法
- 以Ubuntu 9.04为例 将工作环境迁移到 Linux
- VirtualBox虚拟机XP与宿主机Ubuntu互访共享文件夹
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Ubuntu 15.04 正式版发布下载
- Linux-Ubuntu 10.04安装Cadence-ic610 方法总结图解
- Ubuntu 12.04和Windows 7双系统安装图解
- Ubuntu /home下中文目录如何修改成英文?
- 开机出现:grub rescue的修复方法
- Ubuntu连接Android真机调试
- 你应该选择 Ubuntu 还是 Fedora?
- 100 个最佳 Ubuntu 应用(中)
- 看看我的Ubuntu Linux截图
- Ubuntu 12.04 LTS服务器版安装过程及使用图解