-
Notifications
You must be signed in to change notification settings - Fork 74
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
node-rfc not running when using Node.js in "standalone mode" #238
Comments
Could you please describe steps how to install/run NodeJS in "standalone mode" on Windows? |
|
The nodejs installation from binary archive is described only for Linux and it should work the similar way on Windows: https://github.com/nodejs/help/wiki/Installation The complete Windows binary archive should be downloaded and that Could you please try if it works with the recommended installation? |
Unbelievable - thank you very much for your help. There is no |
That is interesting, perhaps this is indeed the issue happening in #144? |
Seems like it, but I don't know how to solve this with respect to Electron. I was also trying to get node-rfc running with Electron, but I failed, which is why I ended up using this "standone mode" of Node.js as a fallback. I was also trying |
Describe the bug
Connecting via node-rfc with an installed version of Node.js works perfectly fine (via command-line
node script.js
).Using the standalone exe file from Node.js (meanig
node.exe
from the binaries available at https://nodejs.org/en/download/) the errorError: A dynamic link library (DLL) initialization routine failed.
is thrown.To Reproduce
Running the following script (saved in
script.js
) vianode script.js
on the command line works perfectly.The result outputs the result of the remote function.
Running the same script via downloaded exe-file using
node.exe script.js
(when being the same folder) results in the error mentioned above.The path(s) to the
nwrfcsdk
is valid in both cases (viaPATH
variable, which is set in the beginning of the script). Furthermore, thesapnwrfc.node
is also found on the paths provided (in case it is not found a different error is thrown).The same setup works e.g. for
better-sqlite3
(https://www.npmjs.com/package/better-sqlite3), which also compiled to a.node
file. Though, an additional path to a sdk is not required.Screenshots
None.
Environment
Installed Node.js outputs:
Standalone Node.js outputs:
Additional context
I think solving this might also be solving #144.
The text was updated successfully, but these errors were encountered: