Skip to content

How to get the node.js server to run locally on my machine #6

Open

Description

@KevanDoyle

How do I install libpcap and the pcap module on my Mac? I just installed homebrew, what's the next step?
After that, how do I get the server to run locally on my machine so I can check out changes I make to the code? Do I just have to run 'node app.js' inside the pcap-map directory? Right now I get a "Cannot find module 'pcap'" error.

Activity

  1. sirkitree commented on Apr 1, 2012

    @sirkitree
    Contributor

    Hey Kevin!

    Sorry for the late reply, I dont know why I didn't get notified of this issue.

    If you have homebrew installed, I think you can run 'brew install libpcap'.

    Then within your repo checkout and within the pcap folder, run 'npm install'. This should grab the necessary node modules you need to run the app.

    Next, you should be able to run 'node app.js' to get it running. Running it this way you must stop and restart the app when you make changes. To help with this, you can also 'npm install supervisor -g' which will install the supervisor node app globally. This will allow you to run 'supervisor app.js' instead of 'node app.js' and will automatically detect changes to your files as you work and restart the app when it detects changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions