Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    dragon788
    @dragon788
    is there an issue filed on the GitHub repo to add this feature yet? that'd be a good place to start
    Tin Minh
    @tinvm
    Hi guys, i have use node-windows libs for desktop app (electron freamwork). It working well with elevate method so this not run by admin. I have try for use sudo method but error throw sudoer stop... pls help me thanks
    Corey Butler
    @coreybutler
    @tinvm - I use sudo-prompt within my electron apps. The sudo script I wrote for node-windows wasn't really designed for use with electron.
    Tin Minh
    @tinvm
    @coreybutler Yep i'm using it. So i need display icon and app name in dialog that confirm when run command and sudo-promt not support this. sudo-promt only confirm for cmd. :(
    Corey Butler
    @coreybutler
    @tinvm - I think we're going to need more detail... I'm not entirely clear what the problem is, but using sudo-prompt and the elevate libs simultaneously makes me very suspicious.
    Corey Butler
    @coreybutler
    @tinvm I just saw the issue you logged on Github. I think you're asking how to specify a specific username for the sudo command? If that's the case, the unfortunate answer is you cannot specify a user. The sudo command is used primarily to elevate a user's permissions without prompting them, but this does not work on all versions of Windows (it is particularly problematic on Windows 7). If that's not what you're asking, please clarify.
    Jimmy Hodgson
    @JimmyHodgson
    Hi everyone, I need to run my node app with extra memory, using the console I can run node --max-old-space-size=4096. Is there a way to tell node-windows to use enough memory for node?
    Corey Butler
    @coreybutler
    @JimmyHodgson - node-windows supports a "flag" attribute (an array, I believe), which was added in PR #76 (https://github.com/coreybutler/node-windows/pull/76/files)
    I don't think it's documented in the README and should be
    (I didn't write that code, so I'm not really that familiar with it)
    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.