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

Cannot start sample application #26

Closed
paypalsathya opened this issue Nov 25, 2013 · 6 comments
Closed

Cannot start sample application #26

paypalsathya opened this issue Nov 25, 2013 · 6 comments

Comments

@paypalsathya
Copy link

I followed the steps mentioned in the ReadMe file and Krakenjs.com to setup and run the HelloWorld app.

But, for some reason, when I try npm start, I am getting the following error:

LM-SJC-00712384:SampleNodeApp schandrashekar$ npm start

samplenodeapp@0.0.1 start /Users/schandrashekar/Documents/Workspace_nodeapp/SampleNodeApp
node index.js

[TypeError: Cannot read property 'prototype' of undefined]

I havent changed anything within the project. Just followed the instructions mentioned.

@lensam69
Copy link
Contributor

Make sure you're running node version >= 0.10.

@paypalsathya
Copy link
Author

Yup, that did the Trick. Thanks Lenny!

@lensam69
Copy link
Contributor

I'll be adding this to the FAQ.
But I'm curious, since we have a node engine dependency on the package.json file, this shouldn't happen --in theory--.

Can you share some details on your environment? OS, node, (do you have multiple versions of Node installed)

@paypalsathya
Copy link
Author

I am working on Mac OS X : 10.7.5.
The node version that I previously had was : v0.8.16 but, after the update : v0.10.22.
I believe I only had one version of node installed.

@lensam69
Copy link
Contributor

After reading the npm documentation, I learned that specifying the engine is only "Advisory".
To enforce it, we were missing "engineStrict" : true in our package.json file.

This should prevent the installation if the minimum node version is not met.

Ref: https://npmjs.org/doc/json.html#engineStrict

@paypalsathya
Copy link
Author

Oh ok. Yeah, this would be helpful.

t0lkman pushed a commit to t0lkman/kraken-js that referenced this issue Feb 6, 2014
Allow port to be a string/socket.
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