Mac/ubuntu/windows under Installation Nodejs

Source: Internet
Author: User
Tags install node

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 does so, follow these steps:

    1. Install Cygwin.
    2. Use of the setup.exe 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.