There are many ways how you can install polymer. But I prefer the recommended way i.e. Installing with Bower. Bower is a very powerful tool which manages all your dependencies. So when you will install Polymer, all dependencies will be installed automatically. You don't need to install them one by one. At the same time, Bower handles any future update also.
Below are the steps you need to do -
Below are the steps you need to do -
- Install Node and npm first from http://nodejs.org/
- Install Git from http://git-scm.com/
- Once you have installed Node and npm, Git, install Bower by issuing the below command -
- Once done, Bower is installed in your machine.
- You need to create bower.json file for your application. Run the below command from root of your project (It will ask few questions which are very much self explanatory)-
- Now install Polymer by -
- That's all.
npm install -g bower
bower init
bower install --save Polymer/polymer
Note: In order to update, issue the command bower update.
0 Comments