Setup your environment
This code lab was tested with following versions:
- Node.js 14.16.0
- Ionic 5.4.16
- Cordova 10.0.0
- Cordova-res 0.15.3
- IFP SDK 2.7.0
- macOS 10.15.7
- Xcode 12.4
Windows
Go to https://nodejs.org/en/ and download the latest version of Node.js (JavaScript runtime built on Chrome's V8 JavaScript engine).
After installation you can run the following command line commands:
>> node -v
v14.16.0
>> npm -v
7.6.3
# install Ionic latest 5.x version
>> npm install -g ionic@"<6.0.0"
>> ionic -v
5.4.16
# install Cordova
>> npm install -g cordova@10.0.0
>> cordova -v
10.0.0
>> npm install -g cordova-res
macOS
On macOS you can use homebrew to install node and then ionic and cordova.
# install homebrew Homebrew 3.0.0
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew --version
Homebrew 3.2.0-61-gaa14e48
Homebrew/homebrew-core (git revision 8d0a4388c3; last commit 2021-06-28)
Homebrew/homebrew-cask (git revision 96ae460e46; last commit 2021-06-28)
# install Node.js
$ brew install node@14
$ node -v
v14.17.1
# install Cordova
$ npm install -g cordova@10.0.0
$ cordova -v
10.0.0
$ npm install -g cordova-res
# install Ionic
$ npm install -g ionic@"<6.0.0"
$ ionic -v
5.4.16