cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MDK Client SDK 24.4.3 - Cannot install NativeScript 8.6.5

Gary_Faulkner
Explorer
0 Likes
479

The automated builds of our branded MDK client suddenly began failing with the following error when attempting to install NativeScript 8.6.5:

error @sigstore/protobuf-specs@0.3.3: The engine "node" is incompatible with this module. Expected version "^18.17.0 || >=20.5.0". Got "20.4.0"

error Found incompatible module.

I also reproduced the error in my local development environment.

We currently use MDK Client SDK 24.4.3, which requires NativeScript 8.6.5 and a Node.js version no newer than 20.4.0.

The error appears to be due to a requirement change in a NativeScript dependency package. Please advise of the SAP-approved solution to resolve this issue that involves use of Node.js v20.x.y, as we currently use this version of Node.js to build all our company's software artifacts that rely on Node.js.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes

There are a couple of options here.

1) Upgrade to a newer MDK version 24.7.6 or 24.11.2 both of which use newer node / nativescript combinations

2) Instead of using node 20.4.0 use node 18.17.0 which is a supported version per the error message and also in the supported node version ranges

3) Install a newer version of node (v20.5.1) which will allow nativescript 8.6.5 to install.  It may be that the upper limit was set based on what was stable at the point in time 24.4.0 was released and newer versions would still work.  I would stay as close to the upper limit if staying on 24.4.0. I can confirm that I was able to use 20.5.1 to create and launch an iOS client but have not done any other testing.

Gary_Faulkner
Explorer
0 Likes
Bill - Thank you for your reply. For now, we need to continue to build with MDK Client SDK 24.4.3 and we need to build with configurations approved by SAP. Therefore, I implemented option 2 that you provided. However, I used Node.js 18.20.5 which is the latest LTS release for Node.js 18 and meets the "^18.17.0" requirement of the recently modified NativeScript 8.6.5 dependency.

Answers (0)