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 6683429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:49:14+00:00 2026-05-26T04:49:14+00:00

Just installed nodeJS and NPM and nodesupervisor via Terminal in OS 10.5.8. I have

  • 0

Just installed nodeJS and NPM and nodesupervisor via Terminal in OS 10.5.8.

I have a server running with:

var http = require("http");

function onRequest(request, response) {
  console.log("Request received.");
  response.writeHead(200, {"Content-Type": "text/plain"});
  response.write("Hello World!");
  response.end();
}

http.createServer(onRequest).listen(8888);

console.log("Server has started.");

How do I restart the server, without quitting Terminal if the following is updated:

response.write("Hello World, From NodeJS!");

I’ve seen this “^C” used in Terminal, in a NodeJS video TUT.

Also have node supervisor which appears to handle these changes, but when I attempt to use the watch “-w” command(supervisor -w server.js),
on server.js, nothing (“file being watched” or something) is returned, and the supervisor help screen simply reloads.

NPM: 1.0.96
nodeJS: v0.4.11

  • 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-05-26T04:49:15+00:00Added an answer on May 26, 2026 at 4:49 am

    Ctrl-C is definitely the way to quit node without quitting terminal all together, just like most command-line apps.

    A better option for you might be nodemon. It is specifically for restarting node when changes to files are made.

    To install:

    npm install nodemon -g

    Then simply execute your app with nodemon instead of node.

    nodemon server.js

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

Sidebar

Related Questions

I'm running node.js on OSX and have just installed mongodb using command npm install
I just get started on nodejs. I have installed nodejs and npm. Now, I
I have just installed Hudson on a Weblogic server and I am having issues
I have a linux box and just installed nodejs. A lot of the examples
I just tried the ruby-graphviz gem ( http://github.com/glejeune/Ruby-Graphviz ). I followed the instructions (installed
I just installed mongodb from Synaptic (Using ubuntu 11.10). I'm following this tutorial: http://howtonode.org/express-mongodb
I just installed nodejs v0.6.12 on Ubuntu 10 on Amazon AWS. The code runs
I just installed the latest version of nodejs, and while I can get it
I have just started working with nodejs. I am a java script newbie. I
I just installed node.js on Windows. I have this simple code which does not

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.