PHONEGAP Environment Construction

Source: Internet
Author: User

1, installation Nodejs

Purpose: node. JS is a platform built on the chrome JavaScript runtime to easily build fast, easy-to-scale Web applications. With event-driven, node. js, the non-blocking I/O model becomes lightweight and efficient, making it ideal for data-intensive, real-time applications running on distributed devices.

Version: v0.12.0

After the installation is complete, the environment variables are configured and added in path. C:\Program files\nodejs\;

After configuration is complete, you can open the command line to verify that it is installed and configured successfully

If this occurs, the above indicates that the installation and configuration are successful.

2. Install git:

: http://git-scm.com/

In this interface to download the corresponding version of the installation program, to install, after the installation, we executed in the cmd command tool git--version detect if git installed successfully,

3. Install PhoneGap or Cordova:

PhoneGap and Cordova are essentially no different, but there are some differences in the instructions to create the project, in order to better demonstrate, we will be here PhoneGap and Cordova installed

Open the cmd command line and execute the installation phonegap instructions in the Windows environment:

NPM install-g PhoneGap

If the environment is Mac, the instruction is

sudo npm install-g phonegap

It takes a while to wait for a period of time after the instruction is executed, and the installation time is sometimes longer.

Then we install the Cordova, the instructions are similar to the above, just replace the phonegap with Cordova

Windows:

NPM install-g Cordova

Mac:

sudo npm install-g Cordova

PhoneGap and Cordova After installation, we can use the instructions to verify whether the installation is successful

If ' phonegap ' is not an internal or external command error, it needs to be configured in the system environment variable. The value added to path is: C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM;

Execute the above command again and the corresponding version should be displayed.

PhoneGap Environment Setup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.