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

ServerDate.js fails to load when testing #14

Closed
kylemcdonald opened this issue Mar 4, 2014 · 1 comment
Closed

ServerDate.js fails to load when testing #14

kylemcdonald opened this issue Mar 4, 2014 · 1 comment

Comments

@kylemcdonald
Copy link

Steps to reproduce:

mkdir serverdate-test
cd serverdate-test
npm install serverdate
cp node_modules/serverdate/Node.js/* .
npm install
node server.js

Open in browser, e.g., http://localhost:51539

Open inspector and click Network tab, ServerDate.js says "(pending)" indefinitely.

Edit: I'm new to Node.js and Express.js, and it looks like I was expecting the wrong thing from this test example? I'm still not sure how to get the test running though.

@NodeGuy
Copy link
Owner

NodeGuy commented Nov 18, 2014

I'm sorry I didn't respond sooner; I just realized that I have to manually "watch" my own Github project to receive notifications.

The problem is that you didn't copy the whole file structure properly for the test to work.

Try this instead:

mkdir serverdate-test
cd serverdate-test
npm install serverdate
cd node_modules/serverdate/Node.js
npm install
node server.js

@NodeGuy NodeGuy closed this as completed Nov 18, 2014
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