Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8988021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:55:42+00:00 2026-06-15T21:55:42+00:00

I have downloaded Node.js from their site in my windows xp os. I have

  • 0

I have downloaded Node.js from their site in my windows xp os. I have installed it through the microsoft installer. I didn’t know how to write my first application, where to save them and how to execute them in Windows. I have got a node.js command prompt but I can’t use it.
I have searched a lot but there is only instruction for linux and mac. I didn’t find any suitable tutorial or example that I can start a node application from scratch.

If anybody can put some documentation or steps or any such tutorial where I can get help of this, it will be great for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:55:43+00:00Added an answer on June 15, 2026 at 9:55 pm

    As this blog entry by Eric, it is ridiculously easy to get a node.js server setup and responding to requests on 127.0.0.1:#port#.

    Really easy. I just did it all in… Longer than write this text.

    1. Download an OS-appropriate node.js1: http://nodejs.org/

    2. Now, create a .txt (plaintext) file in the same folder as your node.exe and rename that to server.js.

    3. Put this Javascript in that file:

      var http = require('http');
      
      http.createServer(function (request, response) {
          console.log('request starting...');
      
          response.writeHead(200, { 'Content-Type': 'text/html' });
      
          var html = '<p>Hello World!</p>';
      
          response.end(html, 'utf-8');
      }).listen(8125);
      
      console.log('Server running at http://127.0.0.1:8125/');
      
    4. Open a cmd.exe and cd c:\path\to\the\node\executable, where node.exe resides.

    5. From there, run:

      node server.js
      

      You should see it say:

      Server running at http://127.0.0.1:8125
      
    6. Open a browser and put http://127.0.0.1:8125/ in the address bar.

      You should see it say:

      Hello World!
      

    That’s it. That’s pretty easy. The proverbial Hello World! in 15 seconds or less. Now how to get it to parse a Javascript file and return that output instead of simple HTML…


    1. Note, I got the executable, node.exe, made a folder somewhere, put the executable in that folder. No installer. Works like a charm.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using NodeJS under Windows (with node.exe downloaded from NodeJS site). I would like
I have downloaded and installed ActivePerl on my Windows 7-64 machine. Everything went smooth,
I am having trouble with kiwi, the package loader from node.js I have installed
I have downloaded the two releases of python 2.6.8 from here http://www.python.org/getit/releases/2.6.8/ and I
I have downloaded follwing code from one of Google Codes but problem is in
I have downloaded nmap. As far as I know, it supports the 'whois' tool.
I have downloaded a file WINDOWS POWERSHELL that has an .msu extension how do
I'm using the Windows Launcher development environment for Google App Engine. I have downloaded
I have downloaded and installed the Symfony2 standard edition. I've done all the steps
I have a Drupal 7 site with a custom node type with a custom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.