In this recipe, you will learn how to install Foundation on the command line using npm.
To install Foundation CLI, you should have Node.js installed on your system. Read the Installing Sass for command line usage recipe of Chapter 1, Getting Started with Sass, to learn about Node.js and npm.
If you have Foundation 5 CLI installed, you should remove it before installing Foundation 6 CLI by running the following command in your console:
gem uninstall foundation
The following steps will show you how to install Foundation:
npm install --global foundation-cli