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