coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.83k stars 356 forks source link

Why do we need to install it globally? #369

Closed itsmebasti closed 8 months ago

itsmebasti commented 8 months ago

I had some issues with the dependencies, so I have a quick question:

When node-windows is installed globally, my IDE does not resolve the dependency and there is no IDE support (everything works fine though). Linking didn't help (I'm using yarn2). So I decided to install it in the package (only). This worked locally, but on the Windows server I got an error, that was already reported here saying Error: Cannot find module 'node-windows'

Why is the global installation recommended and why is the server unable to resolve the dependency?