After I have installed Wappler and create a mobile app, I get the following error regarding Cordova being missing (I am using a Mac). Even doing a system check gives me the same error.
Checking NodeJS installation and version...
v8.11.1
NodeJS is correctly installed.
Checking GIT installation and version...
git version 2.16.3
GIT is correctly installed.
Checking Cordova installation and version...
/bin/bash: cordova: command not found
Cordova is missing!
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/paullamacraft/.npm/_logs/2018-07-30T22_40_34_738Z-debug.log
Cordova installation failed!
@paul1 It took me the better part of a Saterday night to get around every issue that sprang up with the installation. In this case it seems the following will work:
sudo npm install -g cordova
Install as an admin - so just after this command key in your system password.
If I remember correctly you should open Xcode and install the sims you want to work with, same with Android Studio. Installing multiple sims offers your the option to open an app in a specific sim by adding the device and version to your command line code: This was from a Stack Overflow I read:
To find out what are the simulator images available you can use to list them
$ cordova emulate ios --list
If nothing is there - install throough xcode and then run like this:
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxxx/.npm/_logs/2018-07-31T13_35_38_573Z-debug.log
ios-deploy installation failed!
Looks like permission problems. Usually when you see this, just add sudo in front of your command as per 1st instruction. Then enter your password and everything "should" run for that step.
Thanks, but excuse my ignorance I donāt really understand. Everything appears to be working fine until it comes to deploying on iOS where the error appears:
ios-deploy is missing!
It then tries to install with installing iOS-display but results in iOS-deploy installation failed.
Thanks for your time.
PS - This is the error:
Xcode is correctly installed.
Checking ios-sim installation and versionā¦
7.0.0
ios-sim is correctly installed.
Checking ios-deploy installation and versionā¦
/bin/bash: ios-deploy: command not found
ios-deploy is missing!
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxxx/.npm/_logs/2018-07-31T15_02_14_765Z-debug.log
ios-deploy installation failed!
Yes, on my Mac I have everything working fine but for some reason on my MacBook I keep getting the errors mentioned above. It is a nuisance as a lot of the coding I could do on my MacBook and use my Mac for completing the visuals.
I could also use my laptop to test and learn using the extensions.
I have not seen this error⦠sorry⦠I searched google and especially stack overflow for solutions to the specific errors. Like I said it took me about 5 hours hitting the curve balls cordova sent my way. With Android studio make sure you have java v1.8 installed and enabled. I could not get it to work with any other version
Iām going to āhigh-jackā this post with another error. I got cordova iinstalled with Framework 7 version 2 and all was working fine. Could build and emulate. Iām not sure if it was 1 version earlier of wappler. Now getting back to the app after 2 weeks, emulate and build does not work with just the basic kitchen sink setup, nothing edited. Any pointers on this error:
(node:9983) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError
(node:9983) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.