Skip to Content

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

Used to work but now I get these errors:

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Nov 10, 2017 at 10:58 AM

    Anyone?

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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 20, 2017 at 05:07 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 23, 2017 at 12:29 PM

    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
    
    
    
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 05, 2017 at 04:46 PM

    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

    Add comment
    10|10000 characters needed characters exceeded