leftpath.blogg.se

Set up command line for mac
Set up command line for mac










  1. #Set up command line for mac how to
  2. #Set up command line for mac install
  3. #Set up command line for mac android
  4. #Set up command line for mac code

Now that PhoneGap is installed on your system, you can create the PhoneGap app.

set up command line for mac

This will ask you to confirm your password before installing PhoneGap.

#Set up command line for mac install

If you get permission errors on OS X, you may need to run the command as the root user, as follows: $ sudo npm install -g PhoneGap ‘npm’ Is the Node Package Manager, and is the reason we needed to install Node. Inside the command line terminal, type: $ npm install -g PhoneGap The Commands for Windows and OS X PhoneGap Installation are Identical

  • In OS X use spotlight (as detailed above) if your terminal is not still open.
  • In Windows 8, click the “windows” button on your keyboard and type “cmd”.
  • In Windows 7, click on start, and type “cmd” in the search box.

    set up command line for mac

    We do this using Node, on the Windows Command Line or Mac Terminal that we previously opened. Next, we need to install the PhoneGap command-line utility. If you have no errors showing up at this point, you’re done! If you have errors, head on back to the Node website and check out the support documentation. You should get a version number without any errors popping up (mine shows version v0.10.22). When the terminal has opened, type: ‘node -v’.

    set up command line for mac

    Select ‘Terminal’ listed next to ‘Applications’. Click on the spotlight icon on the top right of your status bar (it’s a magnifying glass) and type ‘terminal’ in the search box that appears. To check if node is installed, you need to open your terminal. Usually the default is your current drive Click ‘Install’. To agree to the license terms, click ‘Agree’Ĭhoose which hard drive to install node on. Read the license terms (if you must) and click ‘Continue’ This will download the Node installer.ĭouble click on package you have downloaded, and follow this process: If you do not have Node yet, head over to and hit the install button. To setup PhoneGap on OS X, we again need to install node.js on our machine. Default is ‘all’, which is good.Ĭlick ‘install’ to start running the installer Select which features you would like installed. Run the installer and follow this process:Īccept the license terms and click ‘Next’Ĭhange the install location if you want to, and click ‘Next’ To setup PhoneGap on Windows, we need to install node.js on our machine. I used Windows 8.0 and OS X Mavericks for this tutorial. We will be dealing with the latest stable build of PhoneGap at the moment, which is 3.1.0. Creating all three platforms is then as simple as copying the HTML from OS X to Windows, or vice versa. Most developers I know either have a Mac with Windows installed as a Bootcamp or a Mac running Windows in a virtual machine like VMware or VirtualBox.

    #Set up command line for mac android

    Android (built in Java, essentially) can be built anywhere. For Windows Mobile, you must build your PhoneGap application in a Windows environment. One caveat here is if you want to build IOS applications, you have to have your PhoneGap installation on a Mac running OS X and Xcode.

    set up command line for mac

    #Set up command line for mac how to

    In this article we are going to look at how to install PhoneGap, using the command-line interface, on Windows and MAC OS X. This means that you can access functionality formerly only available to the native device language using JavaScript. PhoneGap even gives you plugins that allow you to access your device Camera, Compass, Contacts, GPS and much more.

    #Set up command line for mac code

    The idea is simple – you build your application in HTML5, and then add that code to your PhoneGap application, and it compiles to Android, IOS and Windows for you. PhoneGap has quickly become a popular platform for building mobile applications, mainly because of the simplicity involved in creating cross-platform applications using only HTML, CSS and JavaScript.












    Set up command line for mac