on 2023 Aug 15 6:06 AM
Dear All,
We are facing this error while deploying new version of our MDK APP from SAP BAS.
It's working fine yesterday we started facing this issue.
It seems it's about node version, the logs are below.
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at BulkUpdateDecorator.hashFactory (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/util/createHash.js:145:18)
at BulkUpdateDecorator.update (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/util/createHash.js:46:50)
at RawSource.updateHash (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack-sources/lib/RawSource.js:64:8)
at NormalModule._initBuildHash (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:870:17)
at handleParseResult (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:936:10)
at /home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:1028:4
at processResult (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:745:11)
at /home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:809:5 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.14.2
Request clarification before answering.
From your log, seems you installed a global mdk-tools before, and the version is older than 1.5.0.
So, the solution is to disable the global installed mdk-tools, or update the global mdk-tools if you want a global one.
solution-1: disable global mdk-tools
1. open terminal, input " which mdk" to find the link folder
2. goto the link folder, rename or remove the mdk file.
3. the expect result is: input "mdk" in terminal, it should return "command not found"
solution-2: update global mdk-tools
npm i -g @sap/mdk-tools
Regards,
Zhen-kun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
gpic-ahmed-96
What region your BAS and Mobile Services are running in? e.g., eu10, us10
I just tested in eu10, us10-001 and deployment worked fine.
Can you try after restarting your dev space?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
21 | |
9 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.