How can I create the C++ project and create the js project?

How can I create the C++ project and create the js project?

I download cocos2d-x 3.0 rc0 and cocos2d-js 3.0alpha ,When I create js project : “cocos new myJsGame -l js”
The terminal display error :`Fatal: can’t find any template for language in /Users/sail/Downloads/cocos2d-x-3.0rc0/templates’ This path is cocos2d-x 3.0 Rc0 .

@yaokoowp
Try:
{cocos2d-js 3.0alpha ROOT}/tools/cocos2d-console/bin cocos new myJsGame -l js

This will make sure you run the cocos2d-console of js version. A bit of a pain I know.

@jonah1nine

Thank you for your reply
I run the setup. py again and successfully created the js project, but the command is strange

cocos2d-console  cd bin

➜  bin  ls
cocos       cocos.bat   cocos.py    cocos2d.ini install.py
➜  bin  ./cocos.py

./cocos.py 0.1 - cocos console: A command line tool for cocos2d

Available commands:
	compile    Compiles the current project to binary
	new        Creates a new project
	run        Compiles & deploy project and then runs it on the target
	deploy     Depoly a project to the target
	

Example:
	./cocos.py new --help
	./cocos.py run --help

➜  bin  ./cocos.py new myJsGame -l js
Runing command: new
> Copy template into /Users/sail/Downloads/Cocos2d-JS-v3.0-alpha/tools/cocos2d-console/bin/myJsGame
> Copying cocos2d-html5 files...
> Copying files from template directory...
> Copying directory from cocos root directory...
> Copying cocos2d-x files...
> Rename project name from 'HelloJavascript' to 'myJsGame'
> Replace the project name from 'HelloJavascript' to 'myJsGame'
> Replace the project package name from 'org.cocos2dx.hellojavascript' to 'org.cocos2dx.hellojavascript'

./cocos.py —> cocos ? Don’t understand what is going on

I’m also getting the error:

Fatal: can't find any template for <js> language in ~/cocos2d-x-3.0/templates

I get the same error when running the command from:

~/cocos2d-x-3.0/tools/cocos2d-console/bin/>./cocos new newGame -l js

@yaokoowp What did you change before you ran setup.py again?

Thanks!

Ahh, I get it now, Cocos2d-x is for c++/lua and Cocos2d-JS is for js (native/browser)