Running the Code Examples
Starting from Mojito 0.6.x, to run Mojito commands, you
need a global installation of the
mojito-cli package and
a local installation of the
mojito-cli package contains the
create command that
lets you create applications and mojits, but depends on the
local installation of the
mojito package to run other Mojito CLI commands.
When you create an application with the
mojito-cli package, it will
locally install the
mojito package in your application for you.
For existing applications, however, you will need to locally install
mojito with before you can run the other commands.
Globally install the
$ npm install -g mojito-cli
- Change to the application directory of one of the examples.
mojitoin your application. (If you had created the application with
mojito create app <app_name>, this would be done for you by
$ npm install
Start your application.
$ mojito start