You need a Git client, the Node.js, the Bower package manager and the Polymer CLI to start the demo. It is highly recommended to use the following versions:
- Node.js 6.10.2
- Bower 1.8.0
- Polymer CLI 1.2.0
Check if you have a Git client already installed:
git --version
If your OS can not recognize this command, install Git. For details please refer to this page. When installing under Windows, please make sure you check the following option:
- [*] Use git from Windows command prompt
It is highly recommended to install the Node Version Manager which manages multiple active Node.js versions on your machine. The latest windows version of nvm can be found here. Once nvm installed, install the Node.js and set it for use:
nvm install 6.10.2
nvm use 6.10.2
Polymer still uses Bower as a package manager. Install it using npm (installed via Node Version Manager):
npm install -g bower
Polymer CLI is the official command line tool for Polymer projects and Web Components. Install it using npm (installed via Node Version Manager):
npm install -g polymer-cli
git clone https://github.com/pwa-polymer/number-input-element.git -b 1-start
cd number-input-element
bower install
$ polymer serve --open