Giter VIP home page Giter VIP logo

Comments (20)

bsrdjan avatar bsrdjan commented on September 17, 2024 1

yes, the *4568 is the right one and glad it works now.

Just as a troubleshooting note (will add later to README), in case of Error: %1 ist keine zulässige Win32-Anwendung (%1 is not a valid Win32 application), first check prerequisites:

  1. Verify that SAP NWRFC SDK is properly installed, by chdir to SAPNWRFC_HOME subfolder bin and running rfcexec. No error should reported, only the usage help.

  2. If the error in step 1 occurs, check SAP NWRFC SDK paths and check if Visual C++ Redistributable for Microsoft Visual Studio 2015 installed

  3. Check if the nodejs version (32 or 64 bit) matches the SAP NWRFC SDK version (32/64 bit). In case the nodejs version manager used, it may default to 32 bit, on a 64 bit platform with 64 bit NWRFC SDK installed.

from node-rfc.

ventr1x avatar ventr1x commented on September 17, 2024 1

@VinnyBuck
The issue is pretty easily resolved and it is stunning how this is not obvious and fixed.
node-rfc tries to find rfc.node in /build/rfc... but it's not in there.
There is another folder "win32_x64" that contains rfc.node.
Just copy that to the parent /rfc and you're all set.

This error has nothing to do with NWRFC at all. You should be able to run the server without the libs. The node module only looks for them when you actually try to use them.

from node-rfc.

bsrdjan avatar bsrdjan commented on September 17, 2024 1

@chonlanotr, according to https://nodejs.org/en/download/releases/ neither 6.9.1, nor 4.6.2 ABI version matches the 8.11.2 ABI version 57.
You can build from source but the build should work automatically, during npm install node-rfc, if all prerequisites met.
Would you mind to open new issue, describe your installation steps and post the failure log ?

from node-rfc.

bodyrock avatar bodyrock commented on September 17, 2024 1

I had this issue and it seems to be related to amd computer chip. I switched to intel based and this went away.

from node-rfc.

io-pa avatar io-pa commented on September 17, 2024

Hello,

I just tested installing node-rfc on a Windows x64 machine with node 6.7.0 and it worked.
Be aware that there is no precompiled binary available for this node version.
The installation will thus compile the binary by itself.
Therefor you need to have the toolchain installed.
Can you post your installation log?

from node-rfc.

ismael-gonzalez-sierra avatar ismael-gonzalez-sierra commented on September 17, 2024

I have same problem with 6.9.5 node version. I indicate my installation log:


> [email protected] preinstall c:\Server\nodejs\sap-rfc\node_modules\.staging\node-rfc-78096d56
> npm install node-pre-gyp

[email protected] c:\Server\nodejs\sap-rfc\node_modules\.staging\node-rfc-78096d56
`-- [email protected]
  +-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | | +-- [email protected]
  | | | `-- [email protected]
  | | |   `-- [email protected]
  | | +-- [email protected]
  | | | `-- [email protected]
  | | `-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | | +-- [email protected]
  | | | +-- [email protected]
  | | | +-- [email protected]
  | | | `-- [email protected]
  | | +-- [email protected]
  | | | `-- [email protected]
  | | +-- [email protected]
  | | | +-- [email protected]
  | | | +-- [email protected]
  | | | | `-- [email protected]
  | | | +-- [email protected]
  | | | `-- [email protected]
  | | `-- [email protected]
  | |   `-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | | +-- [email protected]
  | | | +-- [email protected]
  | | | `-- [email protected]
  | | `-- [email protected]
  | |   +-- [email protected]
  | |   +-- [email protected]
  | |   +-- [email protected]
  | |   +-- [email protected]
  | |   | `-- [email protected]
  | |   +-- [email protected]
  | |   +-- [email protected]
  | |   | `-- [email protected]
  | |   +-- [email protected]
  | |   +-- [email protected]
  | |   `-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  | `-- [email protected]
  |   +-- [email protected]
  |   +-- [email protected]
  |   +-- [email protected]
  |   | `-- [email protected]
  |   |   +-- [email protected]
  |   |   `-- [email protected]
  |   +-- [email protected]
  |   `-- [email protected]
  +-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | `-- [email protected]
  `-- [email protected]
    +-- [email protected]
    | `-- [email protected]
    +-- [email protected]
    +-- [email protected]
    | `-- [email protected]
    +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | `-- [email protected]
    `-- [email protected]


> [email protected] install c:\Server\nodejs\sap-rfc\node_modules\node-rfc
> node-pre-gyp install --fallback-to-build

[node-rfc] Success: "c:\Server\nodejs\sap-rfc\node_modules\node-rfc\build\rfc\rfc.node" is installed via remote
[email protected] c:\Server\nodejs\sap-rfc
`-- [email protected]
  +-- [email protected]
  `-- [email protected]
    +-- [email protected]
    | `-- [email protected]
    +-- [email protected]
    | `-- [email protected]
    +-- [email protected]
    | +-- [email protected]
    | | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | | +-- [email protected]
    | | | `-- [email protected]
    | | |   `-- [email protected]
    | | +-- [email protected]
    | | | `-- [email protected]
    | | `-- [email protected]
    | `-- [email protected]
    +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | `-- [email protected]
    +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | | +-- [email protected]
    | | | +-- [email protected]
    | | | +-- [email protected]
    | | | +-- [email protected]
    | | | `-- [email protected]
    | | +-- [email protected]
    | | | `-- [email protected]
    | | +-- [email protected]
    | | | +-- [email protected]
    | | | +-- [email protected]
    | | | | `-- [email protected]
    | | | +-- [email protected]
    | | | `-- [email protected]
    | | `-- [email protected]
    | |   `-- [email protected]
    | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | | +-- [email protected]
    | | +-- [email protected]
    | | | +-- [email protected]
    | | | +-- [email protected]
    | | | `-- [email protected]
    | | `-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   | `-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   | `-- [email protected]
    | |   +-- [email protected]
    | |   +-- [email protected]
    | |   `-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | +-- [email protected]
    | `-- [email protected]
    +-- [email protected]
    | `-- [email protected]
    |   +-- [email protected]
    |   +-- [email protected]
    |   +-- [email protected]
    |   | `-- [email protected]
    |   |   +-- [email protected]
    |   |   `-- [email protected]
    |   +-- [email protected]
    |   `-- [email protected]
    +-- [email protected]
    +-- [email protected]
    | +-- [email protected]
    | +-- [email protected]
    | | `-- [email protected]
    | `-- [email protected]
    `-- [email protected]
      +-- [email protected]
      | `-- [email protected]
      +-- [email protected]
      +-- [email protected]
      | `-- [email protected]
      +-- [email protected]
      | +-- [email protected]
      | +-- [email protected]
      | +-- [email protected]
      | +-- [email protected]
      | +-- [email protected]
      | `-- [email protected]
      `-- [email protected]

When i try my app.js, i have next output:

c:\Server\nodejs\sap-rfc>node app.js
module.js:583
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: No se puede encontrar el módulo especificado.
\\?\c:\Server\nodejs\sap-rfc\node_modules\node-rfc\build\rfc\rfc.node
    at Error (native)
    at Object.Module._extensions..node (module.js:583:18)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (c:\Server\nodejs\sap-rfc\node_modules\node-rfc\index.js:6:11)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)

from node-rfc.

we868618 avatar we868618 commented on September 17, 2024

I have same problem with 6.10.3 node version. Can anyone help us?

I indicate my installation log:

node-pre-gyp install --fallback-to-build

[node-rfc] Success: "C:\sap\node-rfc\build\rfc\rfc.node" is installed via remote

[email protected] C:\sap\node-rfc
+-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | | -- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] deduped | | | -- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | | +-- [email protected] | | | -- [email protected]
| | +-- [email protected]
| | | -- [email protected] deduped | | -- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | -- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | | -- [email protected]
| -- [email protected] | -- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected] deduped
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | -- [email protected]
| | | +-- [email protected] deduped
| | | +-- [email protected] deduped
| | | +-- [email protected] deduped
| | | +-- [email protected] deduped
| | | +-- [email protected] deduped
| | | +-- [email protected]
| | | | -- [email protected] deduped | | | -- [email protected] deduped
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected] deduped
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | -- [email protected] | | | | -- [email protected] deduped
| | | +-- [email protected]
| | | | -- [email protected] | | | -- [email protected]
| | | -- [email protected] | | | +-- [email protected] | | | -- [email protected] deduped
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | -- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] deduped | | | -- [email protected] deduped
| | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | -- [email protected] | | | | -- [email protected]
| | | -- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | -- [email protected] deduped
| | | +-- [email protected]
| | | | -- [email protected] deduped | | | +-- [email protected] | | | -- [email protected]
| | | -- [email protected] deduped | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | -- [email protected]
| | | | -- [email protected] deduped | | | -- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] deduped | | | +-- [email protected] | | | | -- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] deduped | | | +-- [email protected] | | | | -- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] deduped | | | +-- [email protected] | | | -- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | -- [email protected]
| | +-- [email protected]
| | | -- [email protected] deduped | | -- [email protected]
| +-- [email protected]
| | -- [email protected] deduped | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | -- [email protected] deduped
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected] deduped
| | | +-- [email protected] deduped
| | | -- [email protected] deduped | | -- [email protected] deduped
| -- [email protected] | +-- [email protected] | | -- [email protected]
| +-- [email protected] deduped
| +-- [email protected]
| | +-- [email protected] deduped
| | +-- [email protected] deduped
| | -- [email protected] deduped | +-- [email protected] | | -- [email protected] deduped
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected] deduped
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] deduped | +-- [email protected] deduped | -- [email protected]
+-- [email protected]
| +-- [email protected] deduped
| -- [email protected] deduped -- [email protected]
+-- [email protected]
| -- [email protected] deduped +-- [email protected] | +-- [email protected] deduped | -- [email protected] deduped
+-- [email protected]
+-- [email protected]
| +-- [email protected] deduped
| -- [email protected] deduped -- [email protected]

C:\sap\node-rfc>npm test

[email protected] test C:\sap\node-rfc
mocha

module.js:597
return process.dlopen(module, path._makeLong(filename));
^

Error: The specified module could not be found.
\?\C:\sap\node-rfc\build\rfc\rfc.node
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\sap\node-rfc\test\test.js:21:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at C:\sap\node-rfc\node_modules\mocha\lib\mocha.js:230:27
at Array.forEach (native)
at Mocha.loadFiles (C:\sap\node-rfc\node_modules\mocha\lib\mocha.js:227:14)
at Mocha.run (C:\sap\node-rfc\node_modules\mocha\lib\mocha.js:495:10)
at Object. (C:\sap\node-rfc\node_modules\mocha\bin_mocha:460:18)

at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:505:3

npm ERR! Test failed. See above for more details.

C:\sap\node-rfc>npm test

[email protected] test C:\sap\node-rfc
mocha

module.js:597
return process.dlopen(module, path._makeLong(filename));
^

Error: The specified module could not be found.
\?\C:\sap\node-rfc\build\rfc\rfc.node
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\sap\node-rfc\test\test.js:21:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at C:\sap\node-rfc\node_modules\mocha\lib\mocha.js:230:27
at Array.forEach (native)
at Mocha.loadFiles (C:\sap\node-rfc\node_modules\mocha\lib\mocha.js:227:14)
at Mocha.run (C:\sap\node-rfc\node_modules\mocha\lib\mocha.js:495:10)
at Object. (C:\sap\node-rfc\node_modules\mocha\bin_mocha:460:18)

at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:505:3

npm ERR! Test failed. See above for more details.

from node-rfc.

bsrdjan avatar bsrdjan commented on September 17, 2024

I tested with 6.10.3 and could not reproduce. Not sure what could be going wrong. Could you please echo the rfc and rfc_path to console, in index.js and post the output of the node index ?

from node-rfc.

we868618 avatar we868618 commented on September 17, 2024

thanks for your help!
index.js:
'use strict';

var binary = require('node-pre-gyp');
var path = require('path');
var rfc_path = binary.find(path.resolve(path.join(__dirname,'package.json')));
console.log('rfc_path+++++++++++++++++'+rfc_path);
var rfc = require(rfc_path);
console.log('rfc+++++++++++++++++'+rfc);
module.exports = rfc;

logs:

C:\sap\node-rfc>node index.js
rfc_path+++++++++++++++++C:\sap\node-rfc\build\rfc\rfc.node
module.js:583
return process.dlopen(module, path._makeLong(filename));
^

Error: The specified module could not be found.
\?\C:\sap\node-rfc\build\rfc\rfc.node
at Error (native)
at Object.Module._extensions..node (module.js:583:18)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (C:\sap\node-rfc\index.js:7:11)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)

from node-rfc.

kaysap avatar kaysap commented on September 17, 2024

Same here, trying to get this to run on node 6.9.1 with Windows 10 64....

`D:\temp\js\node-rfc>mocha
module.js:597
return process.dlopen(module, path._makeLong(filename));
^

Error: %1 ist keine zulässige Win32-Anwendung.
\?\D:\temp\js\node-rfc\build\rfc\rfc.node
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\temp\hellojs\node-rfc\test\test.js:21:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at C:\Users\Streubel\AppData\Roaming\npm\node_modules\mocha\lib\mocha.js:222:27
at Array.forEach (native)
at Mocha.loadFiles (C:\Users\Streubel\AppData\Roaming\npm\node_modules\mocha\lib\mocha.js:219:14)
at Mocha.run (C:\Users\Streubel\AppData\Roaming\npm\node_modules\mocha\lib\mocha.js:487:10)
at Object. (C:\Users\Streubel\AppData\Roaming\npm\node_modules\mocha\bin_mocha:459:18)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3`

from node-rfc.

bsrdjan avatar bsrdjan commented on September 17, 2024

@kaysap, could you please post exact steps to reproduce? Following these steps I could not reproduce the issue on Windows:

  1. Installed fresh new nodejs release (using nodist for example)
  2. Create test project folder project and cd to that folder
  3. Run npm init and confirm all defaults
  4. Run npm install node-rfc --save, to install node-rfc
  5. Run node issue22.js to verify the installation

Here the issue22.js source:

var abapSystem = {
  user: 'DEMO    ',
  passwd: 'welcome',
  ashost: '10.68.104.164',
  sysnr: '00',
  client: '620',
//  trace: '3',
  lang: 'EN'
};

var rfc = require('node-rfc');
var rfcClient = new rfc.Client(abapSystem);

console.log(rfcClient.getVersion());

Does it work on your test system and if fails, could you please post the step and error log?

from node-rfc.

kaysap avatar kaysap commented on September 17, 2024

@bsrdjan, the result is still the same...

Logs:
git clone https://github.com/SAP/node-rfc.git
Cloning into 'node-rfc'...
remote: Counting objects: 410, done.
remote: Total 410 (delta 0), reused 0 (delta 0), pack-reused 410Receiving objects: 97% (398/410), 13.11 MiB | 492.00 KiB/s
Receiving objects: 100% (410/410), 13.28 MiB | 515.00 KiB/s, done.
Resolving deltas: 100% (187/187), done.

node --version
v6.9.1

npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See npm help json for definitive documentation on these fields
and exactly what they do.

Use npm install <pkg> --save afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
name: (node-rfc)
version: (0.1.11)
license: (Apache-2.0)
About to write to D:\temp\hellojs\node-rfc\package.json:

{
"name": "node-rfc",
"version": "0.1.11",
"description": "nodejs bindings for SAP NW RFC Library",
"main": "index.js",
"directories": {
"doc": "doc",
"test": "test"
},
"dependencies": {
"nan": "^2.4.0",
"node-pre-gyp": "0.6.32"
},
"devDependencies": {
"mocha": "^3.1.2",
"should": "^11.1.1",
"node-pre-gyp-github": "1.3.1",
"github": "0.2.4"
},
"scripts": {
"test": "mocha",
"preinstall": "npm install node-pre-gyp",
"install": "node-pre-gyp install --fallback-to-build"
},
"binary": {
"module_name": "rfc",
"module_path": "./build/rfc",
"host": "https://github.com/sap/node-rfc/releases/download/",
"remote_path": "{version}"
},
"engines": {
"node": ">= 4"
},
"repository": {
"type": "git",
"url": "git+https://github.wdf.sap.corp/D037732/node-rfc.git"
},
"keywords": [
"sap",
"rfc",
"rfc sdk",
"node",
"nodejs"
],
"author": "Srdjan Boskovic [email protected]",
"license": "Apache-2.0",
"gypfile": true,
"bugs": {
"url": "https://github.com/SAP/node-rfc/issues"
},
"homepage": "https://github.com/SAP/node-rfc#readme"
}

Is this ok? (yes)

npm install node-rfc --save

[email protected] preinstall D:\temp\hellojs\node_modules.staging\node-rfc-b40a640a
npm install node-pre-gyp

[email protected] D:\temp\hellojs\node_modules.staging\node-rfc-b40a640a
-- [email protected] +-- [email protected] | -- [email protected]
+-- [email protected]
| +-- [email protected]
| -- [email protected] | +-- [email protected] | -- [email protected]
+-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | -- [email protected]
| | | -- [email protected] | | +-- [email protected] | | | -- [email protected]
| | -- [email protected] | -- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | -- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | -- [email protected]
| | | -- [email protected] | | -- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | -- [email protected]
| | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | -- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | -- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | -- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] | -- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | | +-- [email protected] | | -- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | | -- [email protected]
| -- [email protected] -- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] | -- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| -- [email protected] -- [email protected]

[email protected] install D:\temp\hellojs\node_modules\node-rfc
node-pre-gyp install --fallback-to-build

[node-rfc] Success: "D:\temp\hellojs\node_modules\node-rfc\build\rfc\rfc.node" is installed via remote
npm WARN saveError ENOENT: no such file or directory, open 'D:\temp\hellojs\package.json'
D:\temp\hellojs
-- [email protected] +-- [email protected] -- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | -- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | | -- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | | -- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | -- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | -- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | -- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | | -- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | -- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | -- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | | -- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | -- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | -- [email protected]
+-- [email protected]
| -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | -- [email protected]
| | +-- [email protected]
| | -- [email protected] | -- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | -- [email protected]
-- [email protected] +-- [email protected] | -- [email protected]
+-- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | -- [email protected]
`-- [email protected]

npm WARN enoent ENOENT: no such file or directory, open 'D:\temp\hellojs\package.json'
npm WARN hellojs No description
npm WARN hellojs No repository field.
npm WARN hellojs No README data
npm WARN hellojs No license field.

D:\temp\hellojs>node node-rfc\issue_22.js
module.js:597
return process.dlopen(module, path._makeLong(filename));
^

Error: %1 ist keine zulässige Win32-Anwendung.
\?\D:\temp\hellojs\node_modules\node-rfc\build\rfc\rfc.node
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\temp\hellojs\node_modules\node-rfc\index.js:6:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)

from node-rfc.

bsrdjan avatar bsrdjan commented on September 17, 2024

I am not sure why git clone as first step, it is used when building from source and the initial post was about standard install.

To build from source, please follow these steps, just confirmed by another user to work.

For standard install, the git clone is not needed. Please check if node-rfc eventually globally installed and remove if it is.

Steps for standard install are:

npm -g ls node-rfc (ensure no global package)
mkdir project
cd project
npm init
npm install node-rfc --save

The var r = require('node-rfc') should work from test app then.

from node-rfc.

kaysap avatar kaysap commented on September 17, 2024

I followed your steps, but te result is still the same... :-(

Maybe the RFC SDK version is the problem? I installed IA64_NWRFC_42-20004567.SAR on my Windows10/x64 system.

D:\temp\hellojs\saprfc>node

var r = require('node-rfc')
Error: %1 ist keine zulässige Win32-Anwendung.
\?\D:\temp\hellojs\saprfc\node_modules\node-rfc\build\rfc\rfc.node
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\temp\hellojs\saprfc\node_modules\node-rfc\index.js:6:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)

from node-rfc.

kaysap avatar kaysap commented on September 17, 2024

@bsrdjan
NVM, it works now!! I did a complete reinstallation of RFC SDK, this time I tried the X64_NWRFC_42-20004568.SAR.

Thanks for your support!

from node-rfc.

GeorgeMacintoshJr avatar GeorgeMacintoshJr commented on September 17, 2024

image
Hello @bsrdjan when executing the rfcexec command I'm getting the above error.
Thanks for your help.

from node-rfc.

vinibiscolla avatar vinibiscolla commented on September 17, 2024

@bsrdjan Hey there thanks a lot for your shares, it was really helpfull and usefull, i did everything described here, cause i'm having the same issues listed in the blog, but after a lot of tries not seens to work at least, so let's make clear,

I already read and followed all those steps http://sap.github.io/node-rfc/install.html

just to make an addendum here, first:

Tried to use SDK: NWRFC_45-20004567.SAR which appeared to run properly the rfcexec.exe succesfully with the usage help output, but when i tried to require 'node-rfc' in node was givening an error to me the same @kaysap posted on here then i changed to NWRFC_45-20004568.SAR as described in the documentation, github and here in the blog, but still not working and @kaysap i couldn't find X64_NWRFC_42-20004568.SAR only NWRFC_42-20004568.SAR in the SAP launchpad support

So with the NWRFC_45-20004568.SAR -> Which seens to be the "right" on as described here for windows 10 64 bits base x64 OS with Core(TM) i7, still not being luck.

I am also updated nodejs with the last release yesterday 02/20/18 running on version v8.9.4

How i have visual studio 2017 on my machine i think i have everything well set to Visual C++ Redistributable for Microsoft Visual Studio 2015 and stuff

  • C++ Visual Studio Tools thing i guess is well done,
  • Python 2.7 is installed on my machine with everything well set in variables enviroment PATH,
  • Created C:\nwrfcsdk\lib folder
  • Also added to my environment PATH SAPNWRFC_HOME = C:\nwrfcsdk\lib with the unzipped content of NWRFC_45-20004568.SAR files
  • Also added to my enviroment PATH - NODE_PATH = C:\Users[user]\AppData\Roaming\npm\node_modules

Just to let you know i already downloaded the git master repository make npm init, install and nothing

And finally when i try to use, require or whatever the 'node-rfc' lib still getting cannot find module message:
image

Looking searching to what was happening i think is something related with my node-gyp stuff and i have no idea in how or what i have to do to fiz that, thinking in the concept of this tasks is supposed to be the most automated part i guess i don't have to alter nothing in this area,

To finish after remake almost everything for the third time when i thought that was done right i got the message:
image

PS: Also added folder unzipped at C:\Windows\System32\nwrfcsdk and C:\Windows\SysWOW64 in desperate last attempt, also i make sure to download nodejs 64 bit...

If you, or someone can give some light i would be truly glad !!
Thanks a lot, and sorry for some english mistakes

from node-rfc.

vinibiscolla avatar vinibiscolla commented on September 17, 2024

@ventr1x hey man thanks a lot for your simple answer, makes me feel like a fool !!

All set and clear and could make it work !!
thanks a lot and best regards !

from node-rfc.

chonlanotr avatar chonlanotr commented on September 17, 2024

sorry. I still have that error. Could you please help me. I found folder windows_x64. There're 2 files.

  1. rfc-4.6.2.node
  2. rfc-6.9.1.node
    Where folder i should copy those files to it ?
    my node version is 8.11.2

from node-rfc.

chonlanotr avatar chonlanotr commented on September 17, 2024

I already done with down grade our node version. Thanks

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.