码迷,mamicode.com
首页 > Windows程序 > 详细

Mac /Ubuntu/Windows 下安装nodejs

时间:2014-08-09 21:06:29      阅读:299      评论:0      收藏:0      [点我收藏+]

标签:http   io   for   art   ar   div   linux   line   

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:

  1. Install Xcode.
  2. Install git.
  3. 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

  1. Install the dependencies:

    • sudo apt-get install g++ curl libssl-dev apache2-utils
    • sudo apt-get install git-core
  2. 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:

  1. Install cygwin.
  2. Use setup.exe in the cygwin folder to install the following packages:

    • devel → openssl
    • devel → g++-gcc
    • devel → make
    • python → python
    • devel → git
  3. Open the cygwin command line with Start > Cygwin > Cygwin Bash Shell.

  4. 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.

Mac /Ubuntu/Windows 下安装nodejs,布布扣,bubuko.com

Mac /Ubuntu/Windows 下安装nodejs

标签:http   io   for   art   ar   div   linux   line   

原文地址:http://www.cnblogs.com/yiliweichinasoft/p/3901442.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!