-
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
Unable to install node-rfc in Windows 10 #78
Comments
The As the log shows, the build fails because it requires Python 2 (Known Issues) and on your system the Python 3 is used. As a solution I would recommend using the current node-rfc release, available as a prerelease, with many bugs fixes, improvements and new features (README): npm install node-rfc@next The build is provided for node 10 and the installer should not complain about the Python 3. |
Thanks for your reply. I installed now node-rfc@next but now I am getting different error when trying to call this module in Node - below screenshot.
Appreciate your help in advance. Thanks, |
Could you please create the new project from scratch (run node -v
npm install node-rfc@next
node -e "console.log(require('node-rfc'))" Here how it looks on one Windows test system: λ node -v
v10.15.0
λ npm i node-rfc@next
> node-rfc@1.0.0-rc7 preinstall C:\src\test-node-rfc\node_modules\node-rfc
> npm install node-pre-gyp node-addon-api
npm notice created a lockfile as package-lock.json. You should commit this file.
+ node-addon-api@1.6.2
+ node-pre-gyp@0.12.0
added 1 package from 32 contributors, updated 4 packages and audited 96 packages in 2.876s
found 0 vulnerabilities
> node-rfc@1.0.0-rc7 install C:\src\test-node-rfc\node_modules\node-rfc
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
[node-rfc] Success: "C:\src\test-node-rfc\node_modules\node-rfc\lib\binding\win32-x64-node-v64\sapnwrfc.node" is installed via remote
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN test-node-rfc@1.0.0 No description
npm WARN test-node-rfc@1.0.0 No repository field.
+ node-rfc@1.0.0-rc7
added 75 packages from 61 contributors and audited 104 packages in 9.66s
found 0 vulnerabilities
C:\src\test-node-rfc (test-node-rfc@1.0.0)
λ node -e "console.log(require('node-rfc'))"
{ Client: [Function: Client], Pool: [Function: Pool] } |
Hi - Please find below error logs.
Thanks, |
The error message is telling that following file is for some reason missing on your system:
Looking into node-rfc rc7 release package, the file is included and should be installed by I don't have a Windows 10 system atm. to test, but could you please try following. Check the folder structure of If the folder or the file missing, could you please post the screenshot or the tree listing, like: I can check on Windows 10 if there is possibly an installation bug. As a quick workaround, you can download the rfc-win32-x64-node-v64.tar.gz into I will try to reproduce on Windows 10. |
Surprisingly, this file
I tried the workaround but still no luck - Getting same error even after unpacking the Below are the screenshots which you asked. |
I reproduced the error by moving SAP NW RFC SDK library out of the PATH. The error message is complaining about that "module", not the node module, will add the case in documentation. Could you please check the SAP NW RFC SDK library installation, in a following way:
$ cd %SAPNWRFC_HOME%/bin
$ rfcexec
Error: Not all mandatory parameters specified
Please start the program in the following way:
rfcexec -t -a <program ID> -g <gateway host> -x <gateway service>
-f <file with list of allowed commands> -s <allowed Sys ID>
The options "-t" (trace), "-f" and "-s" are optional. If the output is different, could you please check if the correct SAP NW RFC SDK is downloaded for your platform? Could it be that your platform is 64 bit and 32 bit SAP NW RFC SDK downloaded? OR the 32 bit nodejs used, set by node version manager perhaps? You could also send me the link or screenshot of the location from which the SAP NW RFC SDK is downloaded. |
You were right!! My SDK version was not correct (had this nwrfc750P_3-70002726) hence this error. I downloaded the correct one now (nwrfc750P_3-70002755) from Service Marketplace and it worked well. I have few other question as how can we use this on cloud foundry for which I will raise a new thread. Thanks again mate |
Hi! Im facing the same issue here and I tried with the version "nwrfc750P_3-70002755" which is not working for me. I wonder which version is for 64 or 32 bit. I also tried with version "nwrfc750P_5-70002726.zip" BTW I have Windows 10 64 bits |
Following node-rfc README Prerequisites for all platforms it should be straightforward (relatively :)): More information on SAP NW RFC SDK section on SAP Support Portal: |
Hi All,
Not sure what wrong I am doing but I am not able to install node-rfc module in my Windows 10 machine.
Below are the steps I followed:
Downloaded SDK 750 from SAP service marketplace and extracted the zip into C:\nwrfcsdk (as mentioned in the link
Set the environment variables as mentioned below.
set NODE_PATH=C:\Users\guptar29\AppData\Roaming\npm\node_modules
Kindly help!
Thanks,
Rahul
The text was updated successfully, but these errors were encountered: