cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK custom client - npm ERR! Unexpected token ! in JSON at position 0 while parsing

Manjunath
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear Team -

Im trying to build a custom client for iOS. Im following this tutorial - https://developers.sap.com/tutorials/cp-mobile-dev-kit-build-client.html

MDK SDK version 5.2.3 - this is what I have downloaded today and trying to build the custom client. I have Xcode 12.5.

Below is the error when I execute ./create-client.command...

attached the log as well.

Please help me. Thank you.

2021-06-25t06-55-27-410z-debug.txt

Command npm failed with exit code 1 Error output: 
 npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm ERR! Unexpected token ! in JSON at position 0 while parsing near '!function(){var a="/...'


npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/i302342/.npm/_logs/2021-06-25T06_55_27_410Z-debug.log




Command npm failed with exit code 1 Error output: 
 npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm ERR! Unexpected token ! in JSON at position 0 while parsing near '!function(){var a="/...'


npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/i302342/.npm/_logs/2021-06-25T06_55_27_410Z-debug.log

Accepted Solutions (1)

Accepted Solutions (1)

Manjunath
Product and Topic Expert
Product and Topic Expert
0 Kudos

Not sure.. I tried with the same setup now and builds getting generated for both iOS and Android.

Answers (1)

Answers (1)

Sheee_kiahan
Explorer
0 Kudos
manjunath.gudisi

Have you installed all prerequisites as shown in below image ?

Manjunath
Product and Topic Expert
Product and Topic Expert
0 Kudos

yes Kishan, have already installed the prerequisites as shown on the screenshot.