Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KevanDoyle opened this issue Mar 29, 2012 · 1 comment
Open

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

KevanDoyle opened this issue Mar 29, 2012 · 1 comment

Comments

@KevanDoyle
Copy link
Member

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.

@sirkitree
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants