Skip to Content

SAP HANA XSA on premise: WebIDE SPS 03 Patch 57: (DIBuild) npm ERR! code EINTEGRITY

Hi experts,

we patched our WebIDE to the latest Patch 57. (SPS 03 Patch 57 ( Build 4.3.57 ))

After cloning our project and trying to run the js-modul does the building process fails with this msg:

(DIBuild) npm ERR! code EINTEGRITY

npm ERR! sha1-CELL99M237eOn6sUDcBvXQL2sDA= integrity checksum failed when using sha1: wanted sha1-CELL99M237eOn6sUDcBvXQL2sDA= but got sha1-foNFZ49B2cG1N2hOn0Bc7uCo//s=. (10660 bytes)

I found this error msg for the Full-Stack WebIDE

https://answers.sap.com/questions/478122/webide-full-stack-build-fails-with-enoent-no-such.html#

1. Build the project locally (npm install)
2. When finished, go to your app and import package-lock.json file.
3. Build again in your app

and issue this by node self:

https://github.com/nodejs/node/issues/13635

Do we need this package-lock.json file?

Was creating a MTA template. This works fine and doesn't use this file.

Any ideas?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Nov 06, 2018 at 01:45 PM

    When I've had this problem in the past, I've found that clearing the local registry file system cache has helped:

    xs unbind-service di-local-npm-registry devx-npm-cache-fs
    xs delete-service devx-npm-cache-fs
     
    xs create-service fs-storage free devx-npm-cache-fs
    xs bind-service  di-local-npm-registry devx-npm-cache-fs
    
    xs restage di-local-npm-registry
    xs restart di-local-npm-registry 
     
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 06, 2018 at 09:54 AM

    Found also an post of mine and remembered that this issue in the past was caused by an npm conflict.

    https://answers.sap.com/questions/566416/sap-hana-xsa-sps03-patch-4.html

    Now I removed all the npms for testing and saw that the building process works.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 25 at 02:22 AM

    FYI - I just hit this issue and found that by going to the Project Settings and selecting "Reinstall Builder" it fixed this problem.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 07 at 06:21 PM

    I've put together a post that gives some ideas about fixing this issue.

    https://blogs.sap.com/2020/07/07/escaping-eintegrity-hell/

    -Andrew

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.