Hello Colleagues,
I am trying to create a simple kapsel application with logon plugin using SAP WebIDE.
I have
cordova 5.1.1 ,
SMP SDK 3 SPS 9.1,
npm 1.4.21,
Kapsel 3.9.7 and I am using HAT1.7.2
All the req env variables like Kapsel_home, Android_home are maintained currectly. When I run the setup.cmd of HAT 1.7.2 I get all pre-req installation success, I do run the run.cmd and port 9011 hat is listening to, I connect from my WebIDE to HAT, connection is success.
I use the proxy for both npm and git http://proxy:8080
I am able to create a simple kapsel app without any plugin and it works fine, i deployed it to emulator and also to device,
When I add the logon manager Kapsel plugin from the Device configuration and then when I click on run->runon->Android Emulator, the build is failing,
Here is the complete console output.
9:45:43 PM (Index) Start indexing
9:45:43 PM (Index) "Finished indexing. 172 files found. [442 ms]"
9:58:35 PM (Template) fioriw4template.masterDetail is hidden for external users
9:58:35 PM (Template) fioriw4template.fullScreen is hidden for external users
9:58:35 PM (Template) ui5template.smarttemplate is hidden for external users
9:58:35 PM (Template) fiorireuselibrarytemplate.reuselibrary is hidden for external users
9:59:51 PM (hybrid-toolkit) ----------------------------------------------
9:59:51 PM (hybrid-toolkit) Exporting project HANAFencing...
9:59:51 PM (hybrid-toolkit)
9:59:52 PM (hybrid-toolkit) Sending project HANAFencing to Hybrid App Toolkit...
9:59:57 PM (hybrid-toolkit) Check Cordova version: 5.1.1
9:59:57 PM (hybrid-toolkit)
9:59:57 PM (hybrid-toolkit)
9:59:57 PM (hybrid-toolkit)
9:59:57 PM (hybrid-toolkit) ----------------------------------------------
9:59:57 PM (hybrid-toolkit) Preparing project: Name - "HANAFencing"
9:59:57 PM (hybrid-toolkit)
9:59:57 PM (hybrid-toolkit) - The project already exists. Clean its webapp folder first...
9:59:57 PM (hybrid-toolkit)
9:59:57 PM (hybrid-toolkit) - Unziping project zip file...
9:59:59 PM (hybrid-toolkit)
9:59:59 PM (hybrid-toolkit) - Removing unused data from project.json...
9:59:59 PM (hybrid-toolkit)
9:59:59 PM (hybrid-toolkit) - Applying device configuration and web asset...
9:59:59 PM (hybrid-toolkit) C:\Users\C5161808\SAPHybrid\HANAFencing C:\D Drive\Personal\softwares\SAP_HAT_local\SAP_HAT_local-1.7.2
9:59:59 PM (hybrid-toolkit)
9:59:59 PM (hybrid-toolkit) > Creating Cordova app...
10:00:02 PM (hybrid-toolkit) Creating a new cordova project.
10:00:02 PM (hybrid-toolkit) C:\D Drive\Personal\softwares\SAP_HAT_local\SAP_HAT_local-1.7.2
10:00:02 PM (hybrid-toolkit)
10:00:02 PM (hybrid-toolkit) > Applying custom app info...
10:00:02 PM (hybrid-toolkit) C:\Users\C5161808\SAPHybrid\HANAFencing\hybrid C:\D Drive\Personal\softwares\SAP_HAT_local\SAP_HAT_local-1.7.2
10:00:02 PM (hybrid-toolkit)
10:00:02 PM (hybrid-toolkit) > Adding platforms...
10:00:02 PM (hybrid-toolkit) android:
10:00:05 PM (hybrid-toolkit) npm http GET https://registry.npmjs.org/cordova-android
10:00:09 PM (hybrid-toolkit) npm http 304 https://registry.npmjs.org/cordova-android
10:00:11 PM (hybrid-toolkit) npm http GET https://registry.npmjs.org/cordova-android
10:00:17 PM (hybrid-toolkit) npm http 304 https://registry.npmjs.org/cordova-android
10:00:17 PM (hybrid-toolkit) Adding android project...
10:00:17 PM (hybrid-toolkit) Creating Cordova project for the Android platform:
10:00:17 PM (hybrid-toolkit) Path: platforms\android
10:00:17 PM (hybrid-toolkit) Package: com.sap.geofencing
10:00:17 PM (hybrid-toolkit) Name: HANAFencing
10:00:17 PM (hybrid-toolkit) Activity: MainActivity
10:00:17 PM (hybrid-toolkit) Android target: android-22
10:00:17 PM (hybrid-toolkit) Copying template files...
10:00:18 PM (hybrid-toolkit) Android project created with cordova-android@4.0.2
10:00:21 PM (hybrid-toolkit) Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
10:00:21 PM (hybrid-toolkit) Fetching plugin "cordova-plugin-whitelist@1" via npm
10:00:21 PM (hybrid-toolkit) npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
10:00:26 PM (hybrid-toolkit) npm http 304 https://registry.npmjs.org/cordova-plugin-whitelist
10:00:27 PM (hybrid-toolkit) Installing "cordova-plugin-whitelist" for android
10:00:27 PM (hybrid-toolkit)
10:00:27 PM (hybrid-toolkit) > Adding SAP Kapsel plugins...
10:00:29 PM (hybrid-toolkit) Fetching plugin "kapsel-plugin-logon" via npm
10:00:29 PM (hybrid-toolkit) npm http GET https://registry.npmjs.org/kapsel-plugin-logon
10:00:29 PM (hybrid-toolkit) npm http 404 https://registry.npmjs.org/kapsel-plugin-logon
10:00:29 PM (hybrid-toolkit) TypeError: Cannot read property 'latest' of undefined
10:00:29 PM (hybrid-toolkit) at next (C:\Users\C5161808\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\lib\cache.js:687:35)
10:00:29 PM (hybrid-toolkit) at C:\Users\C5161808\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\lib\cache.js:675:5
10:00:29 PM (hybrid-toolkit) at saved (C:\Users\C5161808\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\npm-registry-client\lib\get.js:142:7)
10:00:29 PM (hybrid-toolkit) at C:\Users\C5161808\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\graceful-fs\polyfills.js:133:7
10:00:29 PM (hybrid-toolkit) at Object.oncomplete (fs.js:107:15)
10:00:29 PM (hybrid-toolkit) The node process of the "generate" script exited with code 1.
I can see type error : cannot read property 'latest' of undefined, Not sure what it means, Could someone please help me ?
Thanks a lot,
Kishore Kumar