Mac /Ubuntu/Windows 下安装nodejs
2014-08-09 18:58
246 查看
Mac
If you're using the excellent homebrew package manager, you can install node with one command:brew install node.
Otherwise, follow the below steps:
Install Xcode.
Install git.
Run the following commands:
darwin_setup.sh
git clone git://github.com/ry/node.git cd node ./configure make sudo make install
You can check it worked with a simple Hello, World! example.
Ubuntu
Install the dependencies:sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
Run the following commands:
ubuntu_setup.sh
git clone git://github.com/ry/node.git cd node ./configure make sudo make install
You can check it worked with a simple Hello, World! example.
Thanks to code-diesel for the Ubuntu dependencies.
Windows
Currently, you must use cygwin to install node. To do so, follow these steps:Install cygwin.
Use
setup.exein the cygwin folder to install the following packages:
devel → openssl
devel → g++-gcc
devel → make
python → python
devel → git
Open the cygwin command line with
Start > Cygwin > Cygwin Bash Shell.
Run the below commands to download and build node.
cygwin_setup.sh
git clone git://github.com/ry/node.git cd node ./configure make sudo make install
For more details, including information on troubleshooting, please see the GitHub wiki page.
相关文章推荐
- windows、ubuntu、mac系统的安装
- 趣图:Mac上安装Windows,然后虚拟机中运 Ubuntu…
- Windows和Mac上NodeJS和Express的安装
- TensorFlow 安装官方教程:Ubuntu 安装,Mac OS X 安装,Windows 安装
- 关于nodejs,mac 上的安装,ubuntu上的安装。
- TensorFlow学习笔记(一):TensorFlow在Windows/Mac/Ubuntu下安装
- Jenkins的Windows、Mac和Ubuntu上的安装
- 如何安装 Tomcat 于 Windows、Mac、Ubuntu 三大系统中
- Mac安装3系统: MacOS+Ubuntu+Windows
- macbook pro上安装三系统详解教程(mac os x+windows+linux ubuntu)
- 从硬盘安装ubuntu,GRUB丢失windows引导解决方法
- ubuntu下安装windows字体
- Windows 7下使用wubi安装Ubuntu9.04+新手常见问题
- windows下硬盘安装Ubuntu 9.04 实现Ubuntu 和 windows 双系统共存
- Ubuntu 下运行 Windows程序——Wine的安装配置
- 在Vista/Windows 7下硬盘安装Ubuntu9.04
- qemu的安装步骤详解(适合ubuntu和windows)
- Windows Virtual PC试用,并安装和运行Ubuntu 9.04
- ubuntu mac windows多系统引导
- Ubuntu 8.10安装Mac(OSX Leopard)主题