package.json
file with JSONLint, to ensure it does not contain any errors, such as missing semicolons, quotes or commas.npm install
on windows, I get gyp ERR! configure error
docpad run
on Windows, it asks me what program I would like to open the file indocpad.js
file as the executable versus the global docpad.cmd
file. To get around this, type docpad.cmd run
instead in projects that have a docpad.js
file. More information here.​EISDIR
errorswatch
and watchFile
. The default is watch
, and it uses the operating system's watching mechanisms. However, sometimes those mechanisms aren't the best. If that's the case, we'd like to switch our watching method to watchFile
. It's slower, but it works when watch
doesn't.watchOptions
, or if your editor uses swapfiles. More info here.​docpad run
inside a directory that already has existing files, but doesn't have a structure that resembles a DocPad project. We can't directly ask you if you would like to use an existing skeleton for the basis of your new website, as pulling in a skeleton inside a non-empty directory may overwrite your existing files. If would like to still use a skeleton for the basis of your new website, you will have to run DocPad inside a new empty directory. If you would like to start your website from scratch (not use an existing skeleton) then you can follow the Getting Started guide. Hope that helps :) If you need more help then check out our Support Channels.PATH
variable. You can solve this in either of these two ways:PATH
variable (may also be called, would you like git to be available to the command line)PATH
variableulimit -n 8192
in your terminal.content
) it is escaped (<
rendered as <
)?<
into its html entity equivalent <
. This helps prevent malicious code accidentally being injected into your website which can open the door to XSS attacks. As such, we have to use a special syntax to keep the variable unescaped when outputted. The special syntax is different for the templating engine your using, so here are the ways we know:<%- content %>
instead of <%= content %>
!= content
instead of = content
!= content
instead of = content
document.title
) is empty or null
=
. So this is wrong: title = document.title
and that is correct: title= document.title
rm -Rf node_modules; npm install
as well.