-
Notifications
You must be signed in to change notification settings - Fork 263
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
While trying to run I get this error: path.exists is now called fs.exists
#88
Comments
Seems pretty straight-forward. path.exists has been changed to fs.exists On Tue, Aug 13, 2013 at 11:18 AM, wavesailor [email protected]:
|
Hmmm ... okay so how do I fix it? I search through all the code and modules for
With regards to running the code, does it have to reside in a specific directory and does it need a particular .host entry or environment variable set? |
Just find On Wed, Aug 14, 2013 at 6:22 AM, wavesailor [email protected]:
|
Okay I replaced all the occurrences of
I searched through all the code for |
Its coming from events.js in node, that's why you're not finding it. As the stack trace ends in node.js code, I am not sure where your error is On Wed, Aug 14, 2013 at 11:28 AM, wavesailor [email protected]:
|
Okay ... a little embarrassing - I didn't realise that howtonode.org, which uses the wheat module needed git to be installed :-( I'm guessing that was the spawn error. I'm running this on a new ubuntu machine Are there any other dependencies I need as I now get further but have run into this error:
|
I'm angry. I was just reading an article on OReiley called "what is node.js". It's first exercise is to read a file from disk. So I copied the code, and tried to run the webserver "node nodeFileServer.js". I get deprecation warnings and errors: "sys is deprecated. Use util instead" and "path.exists" is not a function. A resulting search landed me here, were I see further issues with deprecated code, where not even the recommended replacements work. Furthermore, I find out that fs.exists is also deprecated and I'm supposed to use fs.stat, but only if I'm not checking for the existance of a file! What's a noob supposed to do!!??? |
If you can’t beat them, join them. Volunteering to write and maintain documentation provides immeasurable value to the people who follow. Thank you for sharing your feelings. It highlights the value of contributions in this area. |
While trying to run howtonode.org, I get this error:
I'm new to node.js but I did a successful npm install. I'm running node.js v0.10.15 on ubuntu 12.04
Any ideas?
PS. the README.markdown has conflicting methods to run the server.
The text was updated successfully, but these errors were encountered: