![add emulator in cordova terminal mac add emulator in cordova terminal mac](https://v0-14.quasar-framework.org/images/Android-Studio-SDK-Menu.png)
To check your current set of platforms: $ cordova platform ls We will add the 'ios' and 'android' platform and ensure they get saved to config.xml and package.json: $ cordova platform add ios
![add emulator in cordova terminal mac add emulator in cordova terminal mac](https://res.cloudinary.com/practicaldev/image/fetch/s--A-xU2v_b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1xw1j927nerqasppzlrj.png)
Otherwise it will be installed in the node_modules subdirectory of the current working directory.įollowing installation, you should be able to run cordova on the command line with no arguments and it should print help text.
#Add emulator in cordova terminal mac install#
The -g flag above tells npm to install cordova globally. There are more tips available on using npm without sudo, if you desire to do that. If you are using the optional nvm/nave tool or have write access to the install directory, you may be able to omit the sudo prefix. On OS X and Linux, prefixing the npm command with sudo may be necessary to install this development utility in otherwise restricted directories such as /usr/local/share. On OS X and Linux: $ sudo npm install -g cordova The cordova module will automatically be downloaded by the npm utility. Install the cordova module using npm utility of Node.js. The CLI uses it to download assets when they are referenced using a url to a git repo. Following installation, you should be able to invoke git on your command line. (Optional) Download and install a git client, if you don't already have one. On installation you should be able to invoke node and npm on your command line.
![add emulator in cordova terminal mac add emulator in cordova terminal mac](http://sgfasr709.weebly.com/uploads/1/2/4/1/124124755/563136768.jpg)
To install the cordova command-line tool, follow these steps:ĭownload and install Node.js. The Cordova command-line tool is distributed as an npm package. For detailed reference on Cordova command-line, review the CLI reference Installing the Cordova CLI
#Add emulator in cordova terminal mac how to#
This guide shows you how to create a JS/HTML Cordova application and deploy them to various native mobile platforms using the cordova command-line interface (CLI).