[GH-ISSUE #110] Node 8 - Change daemon dependency by daemonize-process #81

Closed
opened 2026-03-03 16:04:16 +03:00 by kerem · 6 comments
Owner

Originally created by @rafaelquines on GitHub (Feb 3, 2018).
Original GitHub issue: https://github.com/mthenw/frontail/issues/110

Hello.

I'm using frontail in a raspberry. After I upgrade packages, frontail has a error when running with node 8. This bug is on daemon dependency, that is abandoned.

Was created a new package called daemonize-process that works very good.

Can you change this dependency? Or can I create a pull request with this change?

Thanks

Originally created by @rafaelquines on GitHub (Feb 3, 2018). Original GitHub issue: https://github.com/mthenw/frontail/issues/110 Hello. I'm using frontail in a raspberry. After I upgrade packages, frontail has a error when running with node 8. This bug is on daemon dependency, that is abandoned. Was created a new package called daemonize-process that works very good. Can you change this dependency? Or can I create a pull request with this change? Thanks
kerem closed this issue 2026-03-03 16:04:16 +03:00
Author
Owner

@mthenw commented on GitHub (Feb 5, 2018):

Hey,

according to the README this package works only for >=8 so right now it's not possible to switch that dependency.

Can you paste the exact error message that you get?

<!-- gh-comment-id:363060797 --> @mthenw commented on GitHub (Feb 5, 2018): Hey, according to the [README](https://github.com/silverwind/daemonize-process) this package works only for >=8 so right now it's not possible to switch that dependency. Can you paste the exact error message that you get?
Author
Owner

@rafaelquines commented on GitHub (Feb 5, 2018):

Thanks. Ok, sorry, I didn't see it before..

Follow the error:

TypeError: "cwd" must be a string
at normalizeSpawnArguments (child_process.js:380:11)
at Object.exports.spawn (child_process.js:465:38)
at Function.module.exports.daemon (/www/node-bb/node_modules/daemon/index.js:50:31)
at module.exports (/www/node-bb/node_modules/daemon/index.js:25:20)
at /www/node-bb/loader.js:223:21
at FSReqWrap.oncomplete (fs.js:135:15)

This error was identified by this issue: https://github.com/indexzero/daemon.node/issues/41

Already exists a PR on daemon project: https://github.com/indexzero/daemon.node/pull/42

But I think this project is abandoned.

In frontail package.json, your dependency appoint to "github:zipang/daemon.node#48d0977c26fb3a6a44ae99aae3471b9d5a761085", but npm install command in my application can't donwload from this, by some reason.

➜ ~ sudo npm i -g frontail
npm WARN deprecated connect@2.11.0: connect 2.x series is deprecated
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master https://github.com/zipang/daemon.node.git /home/rafaelquines/.npm/_cacache/tmp/git-clone-9e39777e
npm ERR! /home/rafaelquines/.npm/_cacache/tmp/git-clone-9e39777e/.git: Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /home/rafaelquines/.npm/_logs/2018-02-05T12_41_13_007Z-debug.log

Node: 8.9.4
NPM: 5.6.0

Can you help me? Or this problem isn't about your frontail app?

<!-- gh-comment-id:363073924 --> @rafaelquines commented on GitHub (Feb 5, 2018): Thanks. Ok, sorry, I didn't see it before.. Follow the error: TypeError: "cwd" must be a string at normalizeSpawnArguments (child_process.js:380:11) at Object.exports.spawn (child_process.js:465:38) at Function.module.exports.daemon (/www/node-bb/node_modules/daemon/index.js:50:31) at module.exports (/www/node-bb/node_modules/daemon/index.js:25:20) at /www/node-bb/loader.js:223:21 at FSReqWrap.oncomplete (fs.js:135:15) This error was identified by this issue: https://github.com/indexzero/daemon.node/issues/41 Already exists a PR on daemon project: https://github.com/indexzero/daemon.node/pull/42 But I think this project is abandoned. In frontail package.json, your dependency appoint to "github:zipang/daemon.node#48d0977c26fb3a6a44ae99aae3471b9d5a761085", but npm install command in my application can't donwload from this, by some reason. ➜ ~ sudo npm i -g frontail npm WARN deprecated connect@2.11.0: connect 2.x series is deprecated npm ERR! code 1 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master https://github.com/zipang/daemon.node.git /home/rafaelquines/.npm/_cacache/tmp/git-clone-9e39777e npm ERR! /home/rafaelquines/.npm/_cacache/tmp/git-clone-9e39777e/.git: Permission denied npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! /home/rafaelquines/.npm/_logs/2018-02-05T12_41_13_007Z-debug.log Node: 8.9.4 NPM: 5.6.0 Can you help me? Or this problem isn't about your frontail app?
Author
Owner

@mthenw commented on GitHub (Feb 6, 2018):

Yeah, the issue is that npm install uses git underneath but because of some reason it doesn't work for you.

I created a fork that fixes the issue and I also plan to publish it to npm so there will be no need for raw git dependency.

Tomorrow I will update the dep and publish new frontail version.

<!-- gh-comment-id:363376746 --> @mthenw commented on GitHub (Feb 6, 2018): Yeah, the issue is that `npm install` uses git underneath but because of some reason it doesn't work for you. I created a [fork](https://github.com/mthenw/daemon.node) that fixes the issue and I also plan to publish it to npm so there will be no need for raw git dependency. Tomorrow I will update the dep and publish new frontail version.
Author
Owner

@rafaelquines commented on GitHub (Feb 6, 2018):

Thank you @mthenw by your help.
And congratulation by your frontail app.

<!-- gh-comment-id:363397981 --> @rafaelquines commented on GitHub (Feb 6, 2018): Thank you @mthenw by your help. And congratulation by your frontail app.
Author
Owner

@mthenw commented on GitHub (Feb 7, 2018):

@rafaelquines I just published v4.1.1. can you check now?

<!-- gh-comment-id:363925016 --> @mthenw commented on GitHub (Feb 7, 2018): @rafaelquines I just published v4.1.1. can you check now?
Author
Owner

@rafaelquines commented on GitHub (Feb 14, 2018):

It's checked. Now it's working perfectly. Thanks again.

<!-- gh-comment-id:365522661 --> @rafaelquines commented on GitHub (Feb 14, 2018): It's checked. Now it's working perfectly. Thanks again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#81
No description provided.