-
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
Question: Offline installation #200
Comments
Please try with the latest node-rfc 2.4.0, not the 2.3.0 version. Which is your node version? The log shows 12.14, which is not supported. Should be at least 12.17: https://github.com/SAP/node-rfc/blob/master/package.json#L11 The reason is internally used N-API v6, available from 12.17: https://nodejs.org/api/n-api.html#n_api_n_api_version_matrix |
I updated node to the last LTS version: 14.15.4. I also try this solution to have all packages and nm-cache on my vm. The installation seems to wors fine. but I go the following error when I start the application:
But the
but running |
Maybe it could help: If I remove manually the node-rfc module and redo
|
Warnings are uncritical but $ cd $SAPNWRFC_HOME/bin
$ ./rfcexec It shows that correct NWRFC SDK is installed and Assuming the The PATH before loading can be traced by console.log() added in console.log(process.env.PATH);
try {
exports.noderfc_binding = noderfc_binding = require("../binding/sapnwrfc");
} Assuming access rights are not a problem, could you please trace PATH before loading and check if There was a similar issue with installation on IIS #139 |
I added All seems good in the PATH env, and actually I'm running the code with the dev account which is admin on the VM. The output of the console.log:
But I notice something weird, the path noticed in the exception is prefixed by
|
Error: The specified module could not be found.
\\?\C:\src\test-node\node_modules\node-rfc\lib\binding\sapnwrfc.node Is SAP NWRFC SDK downloaded from the Service Portal and could it be that some SDK dll is missing in the lib folder? Does it look like this on your system: PS C:\src\test-node> dir $env:SAPNWRFC_HOME/lib
Directory: C:\Tools\nwrfcsdk-pl6\lib
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2/5/2020 7:31 PM 20786176 icudt50.dll
-a---- 2/5/2020 7:31 PM 1573888 icuin50.dll
-a---- 2/5/2020 7:31 PM 1278976 icuuc50.dll
-a---- 2/5/2020 7:39 PM 65024 libicudecnumber.dll
-a---- 2/5/2020 7:39 PM 159744 libsapucum.dll
-a---- 2/5/2020 7:42 PM 18764 libsapucum.lib
-a---- 2/5/2020 7:52 PM 7157248 sapnwrfc.dll
-a---- 2/5/2020 7:52 PM 81290 sapnwrfc.lib
-a---- 2/5/2020 7:50 PM 17813504 sapnwrfc.pdb Missing dll could why To check what is exactly happening, could you please set the $env:NLSUI_INIT_TRACE_LEVEL="high"
node -p "require('node-rfc')" |
I have exactly the same files in my By crawling the web I found the same explanation than you about the error: The difficulty is to find whichs. I also try to check the |
When NLSUI_INIT_TRACE_LEVEL set to "high", the trace should be sent to console. Perhaps need to be set as system env var? All prerequisites are mentioned here: https://github.com/SAP/node-rfc#windows and it could be that something is missing. Did you install the older version of C++ Redistributable required by SDK runtime? The process monitor should otherwise help find the missing dependency: see #127 (comment) |
I had to reinstall all the redistributable visual studio and now it works :D thanks a lot for your help |
Welcome to the club, had to do it more than once :) |
Hello,
I'm trying to install an application with SAP and node-rfc v2 on an offline virtual machine (windows server 2016) (no connexion to Internet but access to the artifactory of the enterprise).
I successfully installed windows-build-tools, cmake, and lot of dependencies, but I'm stuck with the following problem.
The text was updated successfully, but these errors were encountered: