-
Notifications
You must be signed in to change notification settings - Fork 284
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
Process.chdir() on Centos 7 #1355
Comments
Can you show the error message? Does it help when you change |
This is error message: ENOENT: no such file or directory, uv_chdir |
Okay, can you add |
@addaleax I tried printing me this: /var/www/html/app. I tried your suggestion from before but I always have the same error! |
What does |
this is print of directory:
|
Include the current working directory in the error message for a failing `process.chdir()` since that is usually information relevant for debugging. This is semver-major because it moves properties of the error message object. Inspired by nodejs/help#1355.
Include the current working directory in the error message for a failing `process.chdir()` since that is usually information relevant for debugging. This is semver-major because it moves properties of the error message object. Inspired by nodejs/help#1355. PR-URL: #21526 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Hello then I state that something very strange happens to me, which had never happened to me. So I have a node.js application that runs perfectly on a centos server! Once the application has been loaded on the server, boot with node server.js and everything is working on perfection! As a reboot I set a cron to start the server node with this syntax: @reboot node /var/www/html/app/main.js, the problem is that when I restart the machine the cron starts correctly node.js but when I have to do the change of directory below I have this error:
Node.js Code:
process.chdir('./Model');
Directory Tree:
The text was updated successfully, but these errors were encountered: