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

Trying to run grow21 example throws this error #62

Closed
Zammy opened this issue Jan 11, 2014 · 6 comments
Closed

Trying to run grow21 example throws this error #62

Zammy opened this issue Jan 11, 2014 · 6 comments

Comments

@Zammy
Copy link

Zammy commented Jan 11, 2014

I have done npm install in both client and server folders.

There is server/node_modules/underscore folder. Do you have any idea why require is now loading underscore?

evgenis-mbp:grow21 evgenipetrov$ ./run.sh 
Running "jshint:gruntfile" (jshint) task
>> 1 file lint free.

Running "jshint:app" (jshint) task
>> 7 files lint free.

Running "copy:prod" (copy) task


Done, without errors.

module.js:340
    throw err;
          ^
Error: Cannot find module 'underscore'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/evgenipetrov/Work/GamCo/cloak/src/server/cloak/index.js:4:9)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
@incompl
Copy link
Owner

incompl commented Jan 13, 2014

Do you have a cloak/src/server/node_modules?

@Zammy
Copy link
Author

Zammy commented Jan 13, 2014

That was the problem. Thank you.

@incompl
Copy link
Owner

incompl commented Jan 13, 2014

I added a readme with setup instructions, let me know if I missed anything!

https://github.com/incompl/cloak/blob/master/examples/grow21/README.md

On Mon, Jan 13, 2014 at 9:47 AM, Evgeni Petrov notifications@github.comwrote:

That was the problem. Thank you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-32174886
.

@Zammy
Copy link
Author

Zammy commented Jan 13, 2014

I assume you meant "Run node ./client/test-server.js or a server of your choice "

@Zammy
Copy link
Author

Zammy commented Jan 13, 2014

GET http://localhost:8080/lib/cloak.js 404 (Not Found)

The "copy:pro" grunt task does not seem to copy cloak.js to lib folder.

@incompl
Copy link
Owner

incompl commented Jan 13, 2014

I'll add that as a step in the instructions for now.

On Mon, Jan 13, 2014 at 11:16 AM, Evgeni Petrov notifications@github.comwrote:

GET http://localhost:8080/lib/cloak.js 404 (Not Found)

The "copy:pro" grunt task does not seem to copy cloak.js to lib folder.


Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-32183716
.

@incompl incompl closed this as completed Mar 13, 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