Mac under: one. Cocos Console installation 1. First install Python, recommended to install 2.7 version, ask Baidu. 2. Download Cocos2d-js 3.x, then command line execution setup.py, directly drag in the line, enter the wait. 3. Next it will prompt you to enter the NDK, SDK, Ant Path, and then drag the downloaded files in. Note the ant path is/bin. 4. If the above is not possible to find the path of the situation is not OK, you can later in the Code IDE to configure, after completion, restart the computer for the configuration to take effect. Second, the development tool official recommendation Cocos Code IDE, personal use sense code hint function is not perfect, but the latest version seems to have been solved, we try. Most people choose to use webstorm, prompting the function is too sensitive, the advantage is its shortcomings. the command line creates a project that has no Project.jason, and the main setting is the screen and the resolution of the appropriate model. I used to use the Cocos Code IDE to create the project, Webstorm coding, although a bit troublesome, but this can use the configuration file.
Windows and the above steps, just need to manually configure the Python environment, the environment variable >> system variable >>path under the Python27 path.
More than one sentence: Cocos2d-js from the samples directly can not open, you need to Cocos2d-js 3.x in engineering form into the Webstorm or Cocos Code IDE to run.
COCOS2D-JS Environment Construction