-
Notifications
You must be signed in to change notification settings - Fork 49
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
TypeError: "cwd" must be a string on Node 8 #41
Comments
Is there anyone who could review my PR ? It should be really fast i believe. |
For anyone else affected, a quick workaround is to apply zipang's PR:
|
Paging @indexzero, is it possible for you to merge this PR? It's a trivial bug fix, and would help us out. Node 8 is now in LTS, so many more people will be using this. Two character fix: Before: var cwd = opt.cwd || process.cwd; After: var cwd = opt.cwd || process.cwd(); Thanks! |
Workaround for Node 8 and daemon module issue: indexzero/daemon.node#41
@indexzero Ping, can we get #42 into an NPM release? |
The workaround for this issue should be to pass in |
same issue here but when implemented in modern node way it works |
@stern0 What is the "modern node way"? |
@jhuckaby actually I was wrong the same issue persists |
@jhuckaby but the latest PR works |
@stern0 Yup, just need OP to merge it ;) |
As this module appears abandoned, I went ahead and created the daemonize-process module, in case anyone's interested in a maintained version of |
Thank you @silverwind. You saved my life. If you don't did it, I'll fork daemon project to fix this issue. Congratulations |
Using daemonize-process solved it. |
After upgrading to Node 8, we have an error on startup when launching a NodeBB server.
This issue has been documented here : https://community.nodebb.org/topic/10765/error-starting-nodebb-after-upgrade
And here is the full error stack which has its origin in the
daemon
module used by NodeBB :According to the API documentation,
process.cwd()
is effectively a method : https://nodejs.org/api/process.html#process_process_cwdThe fix is quite trivial and i will provide a Pull Request for it.
The text was updated successfully, but these errors were encountered: