0

Obviously I need to download DocPad (file(s)) before I can do an npm install, but it simply isn't clear to me what to download, etc. I know the file(s) I need are on GitHub, but I don't have the background to understand what I'm looking at. Can you give me, or point me to, a "Download DocPad for Dummies" instructions? Thank you.

  • Did you have a look at their install guide? http://docpad.org/docs/install – ezig Aug 11 '15 at 18:59
  • Thanx, @ezig. However the "npm install -g npm; npm install -g docpad@6.78" is what had me scratching my head. I'm on Windows XP, and I understand this is a command line prompt (I'm an old programmer from when computer programs did not run from GUIs). I've already installed npm, and can run it, but is "docpad@6.78" a file? Where do I find it? Where do I put it so that npm can find it? – Alvin Orzechowski Aug 12 '15 at 00:34
  • You put it in npm global directory (that's why you install it with -g), more here: http://stackoverflow.com/questions/5926672/where-does-npm-install-packages . Also, in console you will be able to call docpad commands, like `docpad server`, but I'm not sure if it will work on Windows, never tried – sdooo Aug 17 '15 at 06:51

2 Answers2

0

To extend on @sindis's comment

When you install Node, you will also install npm, which serves as the node package manager.

npm allows you to install packages globally using the -g flag, which installs a package that has been published to npm (such as DocPad) to wherever the npm global installation directory is, and make DocPad's command line tools available to you.

So by installing DocPad with npm install -g docpad@6.78 (6.78 is the version of DocPad that the command above wishes to install) we will install DocPad to the global npm installation directory, which makes the command line tool docpad available for your use.

I've updated the DocPad installation guide to be a bit clearer about this, suggestions welcome.

Community
  • 1
  • 1
balupton
  • 47,113
  • 32
  • 131
  • 182
0

The installation of DocPad is all controlled by NPM. So once that is installed, all you should need to do to install DocPad is run the npm command, as others have said, npm install docpad -g.

Now, the gotcha in windows is that you might need to execute this command with elevated rights - ie Administrator. Windows doesn't like you installing programs in its root program directory.

Steve Mc
  • 3,433
  • 26
  • 35