Why is my Cordova outdated in PhoneGap Build? - node.js

I have made an app with PhoneGap and did so just a few seconds ago by doing the
npm install -g phonegap
then I checked the verison by doing:
phonegap -v
it returned:
0.9.4
How do I update that? I just followed their sample on the internet. When I go to upload to https://build.phonegap.com/apps/ it gives me this error:
This app is using PhoneGap 2.2.0. We are ending support for Cordova versions below 2.5 -- please upgrade. This app isn't using the latest version of PhoneGap. We recommend upgrading to 3.7.0.
my cordova's version is 5.1.1?
c:\users\user>cordova -v
5.1.1
c:\users\user>phonegap -v
0.9.4
How do I update from PhoneGap 2.2.0 to 2.5.0?

I don't know exactly why, but I had same issue.
I've solved a few minutes ago with version of last release:
npm install -g phonegap#5.1.1-0.29.0
Regards

Related

CocoaPods could not find compatible versions for pod "lottie-ios"

i can't install react-native-lottie throwing error compatatible version for lottie-react-native CocoaPods could not find compatible versions for pod "lottie-ios"
as per the error says we need to go for
npm i lottie-ios#3.1.8 lottie-react-native#3.5.0
cd ios
pod install
Issue resolved!
If you get something like this,
[!] CocoaPods could not find compatible versions for pod "lottie-ios":
In Podfile:
lottie-ios (from `../node_modules/lottie-ios`)
lottie-react-native (from `../node_modules/lottie-react-native`) was resolved to 3.5.0, which depends on
lottie-ios (~> 3.1.8)
Then we can resolve it by the following steps,
Open terminal in root folder of your react native project.
Execute the following commands to install lottie-ios and lottie-react-native packages with the specified version of the cocoa pod error.
npm install lottie-ios#3.1.8
npm install lottie-react-native#3.5.0
After these package addition move to ios folder and run pod install.
cd ios
pod install
Solved this issue by uninstalling the previous installed Lottie version and then
1- yarn add lottie-react-native#4.0.3
2- yarn add lottie-ios#3.2.3
You need to upgrade your platform :ios version in your PODFILE
In my case,I changed platform :ios from 10 to 11, and everything worked well
It depends on the version of react-native version that we use. For me, it's npm i --save lottie-react-native
npm i --save lottie-ios#3.2.3
since, my react-native version is 0.68.2.
You can check the compatible version for your react-native version from the link below:
https://www.npmjs.com/package/lottie-react-native
Hope this helps !
We need to go for:
npm i lottie-ios#3.1.8 lottie-react-native#3.5.0 cd ios pod install
If you want to use the latest version of lottie-react-native with react-native version of >=0.66, add lottie-ios#3.2.3
>= 0.66 latest 3.2.3
Related link: https://github.com/lottie-react-native/lottie-react-native#versioning

Ionic framework installing issue

I install node js then i put the command on prompt 'npm install -g ionic'
but i am facing issue ionic is not install properly in my system can you please help me?
You are using old version of NodeJS (4.4.6), Ionic needs for proper functioning at least node >= 6.4.0. As stated in log information.
Try installing newer version.
you are using a old node version. Please update Your node version. also make sure you install a LTS version. you can check your node version with this command
node --version
https://nodejs.org/en/

Ionic issue with node-sass : cannot download binding

I had an Ionic project for some time. Recently I got an update of Windows 10 (perhaps that caused the issue) and also installed the latest Node - version 10. Today, I did a clean checkout and did npm install. To my surprise, I got this error:
Downloading binary from
https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-64_binding.node
Cannot download
"https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-64_binding.node":
And indeed, this binding does not exist for 4.7.2. Could it be that it was removed?
Ionic version is 3.19.0.
How can I solve it?
NodeJS 10 is not supported by node-sass 4.7.2. Downgrade your Node version to 8 if you're working with Ionic.

Got error while installing Cordova/Ionic in Windows PC

I am new in Mobile Development and I have just starting to learn Phonegap and Ionic to make Mobile Application.
But, while installing the Ionic Framework in my Windows 7 PC I am getting following errors:
Your system information:
Cordova CLI: Not installed
Ionic CLI Version: 2.1.14
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v4.6.1
Xcode version: Not installed
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
Node and npm already installed on my machine.
npm install -g cordova
npm install -g cordova ionic
try it.
i hope you installed node.js from nodejs.org and git files.....
1 step:
open cmd with "run as administrator"...then type npm install cordova(it will take some time to install)....
2 step:
now, npm install ionic
try it with a little bit patience...because to resolve this problem, it had took around 2 hours for me.
Thank you
This seems to be a bug with Ionic/Cordova. What worked for me was to opt into telemetry by running cordova telemetry on. I was able to run cordova telemetry off again afterwards, and the error was still gone.

Phonegap installation failure. Sticking to version 0.9.4 by default

Ive been trying to install phonegap for hours now. For some reason by default it installs version 0.9.4 (when I do npm install -g phonegap). If I specify to use latest version (npm install -g phonegap#5.0.0-0.28.1) I get tonns of errors for almost every dependency out there. Tried reinstalling node, removing modules, clearing npm cache, etc.
Windows 7
Node version 0.12.5 (x64)
Npm version 2.11.2
I had this problem before with my Mac
to fix this, i just simply ran
npm update -g phonegap
and behold it updated itself to 5.0.0

Resources