This section guides you to install all required software and libraries in order to fully utilize Keen for your projects.
You can also check out our video tutorial on how to setup and install Keen here: https://www.youtube.com/watch?v=kxIBFgzvOA0
By default assets folder does not exist and it will be generated only after running gulp task.
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js is required in order to run the Keen build tools.
Download the latest version of Node and install it:
nodejs.org/en/download/
Npm is the package manager for JavaScript and the world’s largest software registry. Npm is a separate project from Node.js, and tends to update more frequently. As a result, even if you’ve just downloaded
Node.js (and therefore npm), you’ll probably need to update your npm.
npm install --global npm@latest
Verify that npm in successfully installed, and version of installed npm will appear.
npm --version
Yarn is a package manager for your code. It allows you to use and share code with other developers from around the world. Yarn does this quickly, securely, and reliably so you don’t ever have to worry.
npm install --global yarn
Verify that yarn in successfully installed, and version of installed yarn will appear.
yarn --version
Here is just a way to install yarn, using npm package manager. Alternatively, you can install yarn using other methods as stated in yarn installation site.
More information on yarn installation, check the documentation:
https://yarnpkg.com/lang/en/docs/install/
Don't forget to run
yarn upgrade after every Keen updates released in order to install newly added or updated 3rd-party plugins.
Gulp is a toolkit that helps you automate your time-consuming tasks in development workflow. To install gulp globally.
npm install --global gulp-cli
If you have previously installed a version of
gulp globally, remove it to make sure old version doesn't collide with new
gulp-cli.
npm rm --global gulp
Verify that gulp in successfully installed, and version of installed gulp will appear.
gulp --version
Git is a distributed version control system designed to handle projects. Download and install Git from
https://git-scm.com/.
Verify that Git in successfully installed, and version of installed Git will appear.
git --version
Run yarn command to update the latest version of package.json
yarn upgrade