Giter VIP home page Giter VIP logo

Comments (10)

bsrdjan avatar bsrdjan commented on September 17, 2024 1

As you can see the startrfc does not have .exe suffix, which means the SAP NW RFC SDK on your system is not for Windows platform. Many other users make unfortunately the same mistake. When open the Service Portal page to download the SDK, users expect the SDK for their platform is automatically pre-selected and just download the package. It is unfortunately not the case and there is a dropdown box to select for which platform the SDK shall be downloaded.

Can you install the RFC SDK for Windows and re-test?

from node-rfc.

bsrdjan avatar bsrdjan commented on September 17, 2024

The installation log shows that node-rfc binary build from source is triggered during installation, instead of using pre-built node-rfc fetched from NPM. The build from source should not be triggered on Windows and should work when requested by npm install node-rtc --build-from-source. In your installation the build from source is triggered for some reason and it fails.

I could not reproduce on Windows with node 20.7.0 and npm 10.1.0, both the standard npm install node-rfc and build from source installation worked.

Which npm version is installed on your system and what kind of system are you using? Standard Windows notebook, server, VM ...? Is there anything special with your Windows system or NPM configuration? What is the output of npm config list ?

I also see log lines not related to node-rfc, like express etc. Do you know why they show up?

Can you do one more test in empty project directory like below and attach the installation log?

mkdir test
cd test
npm init -y
npm install --loglevel verbose node-rfc

from node-rfc.

Uday-Kiran avatar Uday-Kiran commented on September 17, 2024

Hi @bsrdjan ,

I'm using standard windows laptop with Windows 11 enterprise OS.
Kindly check the output of npm config list
Untitled

please find attachment of installation logs.
2023-10-07T19_05_48_814Z-debug-0.log

from node-rfc.

bsrdjan avatar bsrdjan commented on September 17, 2024

Did you test in new created empty directory? The first error is 86 warn cleanup [Error: EPERM: operation not permitted, like your user does not have permissions for certain operations.

Can you repeat the test with admin rights, like open the command console as Administrator and re-test ?

More convenient could be to install NodeJS version manager and use it to install and activate the node version you want to use. Then no admin rights are needed:

nvm install 20.7.0
nvm use 20.7.0
mkdir test
npm init -y
npm install --loglevel verbose node-rfc

from node-rfc.

Uday-Kiran avatar Uday-Kiran commented on September 17, 2024

Hi @bsrdjan ,

I repeated the steps by running command prompt as administrator and using node 20.7.0 using nvm.
Please find the attached logs.
2023-10-09T13_28_05_294Z-debug-0.log

from node-rfc.

bsrdjan avatar bsrdjan commented on September 17, 2024

Hello @Uday-Kiran,

I see only one log. Is it the one with admin rights or with nvm. Can you send also the other one?

Are all pre-requisites installed and which version of SAP NW RFC SDK are you using? Need the output of

cd %SAPNWRFC_HOME%\bin
startrfc -v

Can you please also copy and send the full CMD history (commands input and output) of

mkdir issue302
cd issue302
npm init -y
npm install --loglevel verbose node-rfc

from node-rfc.

Uday-Kiran avatar Uday-Kiran commented on September 17, 2024

Hi @bsrdjan ,

I followed installation instructions to install sap nw rfc sdk
image

But not able to run startrfc
image

The above logs was generated by running cmd as administrator and nvm use 20.7.0 followed by
mkdir test npm init -y npm install --loglevel verbose node-rfc
Find below CMD history and corresponding logs
image
2023-10-09T17_18_40_531Z-debug-0.log

from node-rfc.

bsrdjan avatar bsrdjan commented on September 17, 2024

But is startrfc.exe file there? What is the output of dir command in %SAPNWRFC_HOME%\bin folder?

Users sometimes download SAP NWRFC SDK for the wrong platform. Did you check if correct RFC SDK is copied on your Windows system?

Here are installation instructions. Could you please verify and re-test startrfc ?

from node-rfc.

Uday-Kiran avatar Uday-Kiran commented on September 17, 2024

Yes @bsrdjan I followed the instructions to install SAP NWRFC SDK. Followed all steps to create environment variables.

I have downloaded the right files for windows.
nwrfc750P_12-70002726.zip

Check below directory:
image

from node-rfc.

Uday-Kiran avatar Uday-Kiran commented on September 17, 2024

Thanks @bsrdjan ,downloading the proper SDK for windows 64 bit resolved my issue.
Yes people can get confused and download the SDK on the download portal, as you said we have to select the required platform from dropdown and download necessary package.

from node-rfc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.