2

I want to know if it is possible to download some library from a link where from i can include the elements (polymer's) to my html file? Or somehow install Polymer without bower of npm from node.js?

  • 1
    Yes, it's possible. You would have to manually perform the tasks of a package manager (i.e., among other things, download every dependency of each element you use into a subdirectory of your project). Why do you want to punish yourself with this task? If you wish to use the Polymer CLI (build tools, local server, linter, etc.), you would need Node4+. Technically, you could recreate those tools with a different technology, but why would you want to? – tony19 Dec 28 '16 at 08:47
  • My npm just doesn't work. But other than that node does i believe. What would be your advice on how i go about this. Could you leave instructions in an answer? Also i have Git installed, if that helps. :) i would like to use polymer CLI – Edward Snowden Dec 28 '16 at 08:49
  • The thought of even listing those instructions makes my head hurt. :) This is technically an [XY problem](http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem). Don't you want to fix your `npm` setup so that you could avoid manual labor? I highly recommend asking a new question to get answers to your `npm` problem. – tony19 Dec 28 '16 at 08:54
  • I think it would be best to, as you say, fix my npm problem. – Edward Snowden Dec 28 '16 at 08:56
  • It looks like i hhave to do this manually – Edward Snowden Dec 28 '16 at 14:15

2 Answers2

3

Download the zip file of the component you want to use directly from github and add the file to bower_components folder.

Sawan Patodia
  • 773
  • 5
  • 13
3

The answer by Sawan Patodia is correct but I'd like to add that for quick hacks or testing you could also use Polygit CDN.

Example usage:

<base href="http://polygit.org/components/">

<link href="polymer/polymer.html" rel="import">

If interested you could also view the Polycast by Rob Dodson about Polygit.

Community
  • 1
  • 1
Diyarbakir
  • 1,999
  • 18
  • 36