3

I recently installed nodejs, bower. Then, I installed polymer using this command:

npm install -g polymer

Then, I added the polymer install path:

C:\Users\<user>\AppData\Roaming\npm

Then, I am trying to do polymer init. I am seeing this error:

'polymer' is not recognized as an internal or external command, operable program or batch file.

Can someone please suggest what I can do to get polymer working?

a1626
  • 2,953
  • 1
  • 19
  • 34
user1700184
  • 1,611
  • 2
  • 16
  • 23

3 Answers3

8

Adding on from akc42's answer:

  1. Make sure you have installed the Polymer Cli
    • from a command prompt type: npm install -g polymer-cli
  2. Make sure the npm global install folder is part of the path
    • edit "system environment variables"
    • add reference to where npm is installed to the PATH: C:\Users\<user>\AppData\Roaming\npm
  3. Open new command window
  4. Type: polymer --version
  5. If polymer can be found, it should display the version of polymer installed
Stuy1974
  • 120
  • 3
  • 7
4

The command line tool is called polymer-cli. Install that

npm install -g polymer-cli

akc42
  • 4,893
  • 5
  • 41
  • 60
0

install polymer-cli using npm.

$ yarn global add polymer-cli
# or... 
$ npm install -g polymer-cli

For more: Click here

Codemaker2015
  • 12,190
  • 6
  • 97
  • 81