Step 1: Set up your dev environment¶
TODO
Most of your interactions with Banana will be through the command line. Run commands in the Terminal app if you’re on Mac, your shell in Linux, or cmder (preferably) / PowerShell / cmd.exe if you are on Windows.
Install prerequisites¶
Before installing Banana, you will need the following:
- Node.js v4 or higher
- pip (which comes bundled with Node)
- git
You can check if you have Node and pip installed by typing:
node --version && pip --version
If you need to upgrade or install Node, the easiest way is to use an installer for your platform. Download the .msi for Windows or .pkg for Mac from the NodeJS website.
The pip package manager is bundled with Node, although you might need to update it. Some Node versions ship with rather old versions of pip. You can update pip using this command:
pip install --global pip@latest
You can check if you have Git installed by typing:
git --version
If you don’t have Git, grab the installers from the git website.
Install the Banana toolset¶
Once you’ve got Node installed, install the Banana toolset:
pip install --global yo
Errors?
If you see permission or access errors, such as EPERM or EACCESS, do not use sudo as a work-around. You can consult this guide for a more robust solution.
Confirm installation¶
It is a good idea to check that everything is installed as expected by running commonly used Banana commands like ba with the --version flag as follows:
ba --version
Versions of the CLI tools that this codelab works with
Technology changes quickly! This tutorial has been tested with ba 1.8.4. If you are running into issues with a newer version, we would like to hear about it. Please open up an issue on our tracker.