Search code examples
node.jsdocpad

Command "docpad run" is getting error: "module" is undefined


I've migrated my configurations from docpad.coffee to docpad.js (personal preference on using plain Javascript)

Since then, I'm not being able to execute the command

docpad run

And I'm keep getting this error:

error

I've validated my configurations against JSLint and made sure there's no syntax error.

I'm good to go with docpad.coffee, but it'd be great if someone could help me on fixing this


Solution

  • You can use docpad.cmd run instead of docpad run to distinguish between the local docpad.js and the global npm-installed docpad.cmd.