A guide to running nodejs on Windows (almost)


nodejs doesnt work with windows.

So imo the best thing we can do if we want to join the community is run a virtual machine.

Here's how:

1) Install virtual box

http://www.virtualbox.org/wiki/Downloads

2) Get an unbuntu iso

http://www.ubuntu.com/GetUbuntu/download


3) Install the ubuntu iso. For detailed instructions visit

http://psychocats.net/ubuntu/virtualbox


3) Install vbox guest additions. For detailed instructions visit

http://helpdeskgeek.com/linux-tips/install-virtualbox-guest-additions-in-ubuntu/

4) Open a terminal on your ubuntu virtual machine.

5) Type in the following into your terminal to grab git and the build-essential packages

sudo apt-get install build-essential git-core

6) Type in the following into your terminal to grab node.js from git

git clone git://github.com/ry/node.git

7) Configure, make and install... type the following into your terminal:

./configure

make

make install

node.js is now installed on your machine.

Posted in Labels: |

6 comments:

  1. Anonymous Says:

    Hmm. After step 5 i get message:
    Couldn't find package build-essential

  2. Rick Walsh Says:

    try running in your terminal apt-get update to update your package list found in /etc/apt/sources.list before you run the install command

  3. bardic Says:

    Hey,
    Just wondering if you were able to access the server from your host machine. If not, I got it working finally. I'll leave the link in my name so it doesn't look like I'm spamming >.<

  4. Anonymous Says:

    Thank you, worked for me.
    Although 'sudo' is needed before 'make install'

  5. Anonymous Says:

    Node.js works on Windows under Cygwin at least from 0.1.102. http://node-js.prcn.co.cc even has binaries with Cygwin dlls shipped along so there's no need to install Cygwin

  6. Rick Walsh Says:

    It does indeed! Things have moved on since I posted this :)