cancel
Showing results for 
Search instead for 
Did you mean: 

@sap/xssec issue npm install : binding.gyp not found

b_deterd2
Active Contributor
0 Kudos

Used to work but now I get these errors:

Accepted Solutions (0)

Answers (4)

Answers (4)

Strehle
Advisor
Advisor
0 Kudos

Hi,

there was an update recently with version 1.4.3, which supports now node 9.2.0 , however 7.10.0 is not supported, because in general we support LTS releases and latest one.

See https://github.com/nodejs/Release#release-schedule , so 7.x was removed

You can easily install new versions with nvm: https://github.com/creationix/nvm

regards,

-markus

alexander_gahr
Explorer
0 Kudos

Hello Georgi,

i still get the same error. Is 7.10 not supported?

3:11 $ npm install @sap/xssec


> @sap/node-jwt@1.4.2 install /Users/xxx/Documents/DevProjects/xxx/node_modules/@sap/node-jwt
> node ./build.js


(node:12503) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
gyp: binding.gyp not found (cwd: /Users/xxx/Documents/DevProjects/xxx/node_modules/@sap/node-jwt) while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 17.2.0
gyp ERR! command "/usr/local/Cellar/node/7.10.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/d047589/Documents/DevProjects/asksap/node_modules/@sap/node-jwt
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
Build failed


0 Kudos

Hi,

Sorry for the delayed answer - node 7.10.x is not supported either.

It is best if you use the latest versions of node 6 or node 8.

Best regards,

Georgi

0 Kudos

Hi Bert,

The problem is that the node version that you are using was not supported.

@sap/node-jwt (which is a dependency of @sap/xssec) is built for specific OS-es and node versions.

The issue should be resolved with the new version of @sap/node-jwt 1.4.2 which supports node 8.9.

Best regards,

Georgi

b_deterd2
Active Contributor
0 Kudos

Anyone?

Does any one do an npm install @sap/xssec --save succesfully?