Tagged with: Hone hello nod latest configuration index PHONEGAP build development environment
Now the latest Cordova version number is 5.1.1, under the Mac to build the development environment process such as the following:
1) First install the NODEJS environment
Access official website: http://nodejs.org/. Now version number: v0.12.7
Click "INSTALL". The installation package for your Mac is downloaded. Double-click Install to do so.
2) Enter the terminal command line. Using NPM to install Cordova, commands such as the following:
$ sudo npm install - G Cordova
3) Create phonegap new project, commands such as the following:
$ Cordova Create test cn.com. Test Test
After executing this command. The Cordova program will help you create the test directory. Inside is the PHONEGAP environment where the project name is test.
4) Enter the test directory, such as the following command:
$ cd Hello
5) Add iOS platform, commands such as the following:
$ Cordova Platform Add iOS
6) You can also add the required Cordova plug-in to the device plug-in as an example:
$ Cordova Plugin Add Cordova-plugin-device
7) Double-click Test.xcodeproj to open the Cordova development environment via Xcode
8) Develop Cordova applications.
Configuring PhoneGap (Cordova) 5.1.1 development environment under Mac