-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Module could not be found | libnut.node #365
Comments
Hi @jonkad 👋 Is this error happening on your dev machine, or after shipping it to another box? |
Hi @s1hofmann, This happened after shipping. On dev mashine and some others everything is fine. |
Did you make sure to meet the Windows requirements on the target machine? |
Ah, is that necessary on the target machines as well? |
Yes, these are runtime requirements. I'll highlight this more clearly in the docs 👍 |
Thank you for your assistance! And forgive me for the carelessness 😉 |
You're welcome. Would be nice to hear how you learned about nut.js, considering your move from robot.js? |
@s1hofmann is there a way to ship the runtime requirements together with the installer? |
Hi @s1hofmann 👋 Often, the users of automation apps (think support desk agents) are not admin users. So, if an app built using libraries like nut.js is shipped to them, they will not have the permission to install VCRedist (Windows requirement) on their system. This is also noted by the MS official docs (link) and their suggestion in such case is to do "local deployment": copy the relevant I tried the same technique with libnut.node, unfortunately, it did not work. I want to confirm from you if you are aware of any specifics in libnut.node that may cause local deployment to not work? Local deployment is crucial for such types of applications (non-admin users), and also for building portable binaries of apps. So, it would be great if it worked. |
Thanks @s1hofmann , I just tried this again and it works! (imported libnut snapshot and did |
You may wish to update the docs for first steps on Windows once a new nut.js release is out. |
Hi ✌️ ,
I'm also currently switching from robotJS to nut.js and it seems I've got an equal issue, but with electron-builder...
Maybe this has also happened to someone who have a solution?
Thanks a lot 😄
On unpacked asar the message mentioned C:\Program Files\ Control\resources\app\node_modules@nut-tree\libnut-win32\build\Release\libnut.node
The text was updated successfully, but these errors were encountered: