by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    AmiteswarRoy
    @AmiteswarRoy

    hi I am trying to use node-windows to run my react node js project. To start the application I run the below script,
    cross-env VIRTUAL_HOST=127.0.0.1 BABEL_ENV=development babel-node ./webpack/dev-server.js

    What do I run it using node-windows? what will be the entry for script: 'app.js', in install.js

    Rodolfo Viola
    @rodolfoviolac
    Hi, I am trying to install a service with node-windows on a Windows Server 2012 with 4.5 .net and nothing happens... Any Idea?
    Jimmy Hodgson
    @JimmyHodgson
    @coreybutler I checked the file on the latest version and the flag attribute has been renamed to nodeOptions which takes a string. Setting that attribute I am able to add more ram to nodejs. Thanks!
    Corey Butler
    @coreybutler
    @JimmyHodgson - Glad you figured it out, and sorry for the misdirection. Feel free to log an issue. Better yet, feel free to submit a PR to the README with the change :-)
    @rodolfoviolac - have you seen https://github.com/coreybutler/node-windows/wiki?
    Selvakumar
    @Selvakumar1990
    Hi all i have to make this command as windows services is that possible command getmac > D:\demo.txt to get mac address of the system
    Colin A. White
    @nyquist212
    good morning. Is anyone available for a few mins to help me troubleshoot my node-windows setup?
    my svc.exists() is reporting TRUE but I'm not finding my service in the Windows Services manager and no app listening on my port...
    Colin A. White
    @nyquist212
    I'm using absolute paths to my startup script. I'm running on Win10 and valid domain, account and password credentials...
    alexlpze
    @alexlpze_twitter
    hi, good morning, I'm using node-windows and everything is fine, my node app run as a windows service but if I made changes I need to restart the service... dos Anyone know how can I make my service detect changes without restarting it?
    alexlpze
    @alexlpze_twitter
    @coreybutler is there a way to make node-windows create a windows services with delayed start?
    Jimmy Hodgson
    @JimmyHodgson
    Hi, is there a way to increase the max log file size that gets created in the daemon folders?
    Dawid
    @Taximan

    Anyone tried to get node-windows working with pkg? I just followed the pkg instructions and im getting a weird error like this:

    Error: File 'C:\**\uploader-service\node_modules\node-windows\bin\winsw\winsw.exe' was not included into executable at compilation stage. Please recompile adding it as asset or script.

    I just want my service installer to be a exectuable, so perhaps there is a different way than using pkg. Any ideas?

    Corey Butler
    @coreybutler
    @alexlpze_twitter - not directly. It depends on your use case though... you could launch the app and use a setTimeout to delay the start of processing. The other option is to modify the service after it's created. That's not an out-of-the-box feature though, so you'd have to code that yourself.
    @Taximan - pkg is an alternative to node-windows, not an add-on. If you want a real installer, you should look into something like NSIS or another desktop installer.
    alexlpze
    @alexlpze_twitter
    @coreybutler Amazing job, thanks for share node-windows
    Lordran
    @xzycn
    hi
    I want to know how to make the Windows service running with a UI
    Is there anyone can help me?please.
    Dude
    @stokedbits
    I'm considering using this project, but I couldn't find any official TypeScript definitions. Do they exist somewhere or suggestions?
    Neil A. Beardsley
    @nabeards
    Hey there, just submitted a couple of PRs for some functionality that I needed.
    I'm interested in providing some more edits, but wanted to start with these two.
    e.g., some docs updates, switch from optimize to minimist, standardize on booleans over 'y/n', etc.
    Christopher Rathermel
    @crathermel
    For some reason on my prod box my service "uninstalled" it's self .. trying to re-install via nssm w/ node-windows v0.1.10 and getting this error unexpected status SERVICE_PAUSED in response to START control
    ^anyone got any ideas ?
    Corey Butler
    @coreybutler
    @xzycn - If you're using a UI, use Electron instead
    @stokedbits - no TS. Someone may have done it, but if they did, they never told me.
    @nabeards - thanks! I've been swamped and my backlog for PR reviews is pretty big. I've pinged one of the other maintainers, but if you don't hear anything, let me know.
    @crathermel - node-windows uses winsw behind the scenes. Using nssm is redundant. I believe there is a StackOverflow answer about this.
    Neil A. Beardsley
    @nabeards
    @coreybutler understood! no word yet from another maintainer…
    Nicholas Burns
    @nburns217_twitter
    Maybe a dumb question, I develop on a mac and have a service install script that works with node-mac, I want to develop this installer for windows and will do a process check for the system its running on to use require('node-mac') or require('node-windows') for the environment, but I cant add node-windows to my node-modules to package the electron app because im on a mac. Is there a workaround?
    Corey Butler
    @coreybutler
    @nburns217_twitter I don't know if you ever got an answer to this. It's unlikely you'll be able to package both versions in a single electron build. In my electron apps, I have a separate build process for mac and windows, which changes the dependency (node-mac vs node-windows) at build time.
    Jordan Dziat
    @jdziat
    @nburns217_twitter you may be able to use peer dependencies to get around that restriction. It'll warn you that you need to install it yourself. At that point you should be able to install it programmatically. Just a thought.
    mstfbirinci
    @mstfbirinci
    Hi, I have started a node server with node-windows succesfully,
    but after a while, service stopped automatically and when I trying starting to it manually,
    I got this error "SOME SERVICES STOP AUTOMATICALLY IF THEY ARE NOT IN USE BY OTHER SERVICES"
    Is there anyone who faces this problem?
    AshishShanker
    @AshishShanker
    @coreybutler I have used node-windows in some passion projects of late and would like to make some changes. I noticed you were looking for maintainers, so wanted to learn more to figure out if I could help; and the process (testing / linting needs before a PR may be submitted, etc.). Is there a document somewhere, or some way of looking at pending PRs so I don't attempt a problem that has already been solved, but awaiting a pull.
    Corey Butler
    @coreybutler
    @mstfbirinci - that is almost certainly NOT caused by node-windows itself. There's nothing in node-windows that would throw that message, but Windows itself might throw that for other services.
    Corey Butler
    @coreybutler
    @AshishShanker - I'd love the help. I don't have a document anywhere (shame on me), but the only real mandate is to make sure the API stays in sync with node-mac and node-linux. Any new features need to be added to all 3 libraries and follow semver. If there are PR's with some new Windows-specific functionality, then I like to weigh in before a change is approved. The goal of the 3 projects are to provide API consistency across all operating systems. I'm trying to avoid what happens in the Electron world where there are some API's that are specific to an OS, yet the project boasts it is entirely cross-platform.
    So, if you're interested, just let me know your github handle.
    AshishShanker
    @AshishShanker
    @coreybutler - ashishshanker
    @coreybutler - I will create an issue first describing the perceived shortcoming and outline a potential solution. Then after relevant folks have weighed in, I will code it up and raise a PR. Does that sound like a fair process?
    Corey Butler
    @coreybutler
    @AshishShanker - sounds awesome
    AshishShanker
    @AshishShanker
    I would need to study node-mac and node-linux a little to make sure I'm not stepping on some toes here.
    Corey Butler
    @coreybutler
    Go ahead and post the issue... I'll look it over and let you know if I see anything that would affect the other libs
    AshishShanker
    @AshishShanker
    Perfect!! thanks :)
    AshishShanker
    @AshishShanker
    Hi @coreybutler - any thoughts on how to process lifecycle events so the forked script could perform cleanup before exiting? Apparently, since the script is forked as a child_process, the usual process.on() events like exit, SIGINT, SIGTERM, etc. are not available from inside the script [ they apply to the node process and not to the child_process; as such don't trigger inside the child_process]. The handle to child_process is in wrapper.js, which affords no opportunity to set listeners on the child_process. Let me know if I should open an issue on this to allow more elaborate discussion
    Gaurav Mahto
    @gauravmahto
    @coreybutler Are you still looking for maintainers?
    Torab Shaikh
    @torabshaikh
    Hello everyone. Thanks for this amazing tool. I am very intrigued by this project and want to contribute to it in someway. @coreybutler Let me know if can contribute something. I will be happy to do so. :)
    Corey Butler
    @coreybutler

    @/all - Apologies for the lack of responses. I have been overwhelmed with work on Fenix Web Server, NVM for Windows, and NGN/Chassis/Metadaoc (new stuff). Since my time is becoming less and less available, I am looking for someone interested in taking over the project. I would still like to maintain contact, because a) I have always had aspirations to make a new version that leverages a Go binary instead of the winsw.exe file, and b) I've launched a company/brand that may be able to sponsor some efforts in the future. I just don't have enough time to give this project (or node-mac/linux) the attention it truly deserves. I would be happy to hand control over, but I would want to chat with the new maintainer(s) beforehand, just to provide context and make sure it doesn't cause a community ripple effect (like a few recent module management transitions).

    I will post a contact form in the README after I finish my SXSW conference obligations (i.e. within the next week or two) for anyone interested in taking over.