Error when making a new website

17 views
Skip to first unread message

Mads Høbye

unread,
Mar 9, 2013, 9:56:00 AM3/9/13
to doc...@googlegroups.com
Hey 

When I try to run the docpad for the first time in an empty directory i get the following error? 

What is wrong?



Command:  docpad run
info: Welcome to DocPad v6.24.2
info: Plugins: 
info: Environment: development
error: An error occured: 
TypeError: Cannot call method 'replace' of null
    at Object.balUtilModules.getCountryCode (/usr/local/lib/node_modules/docpad/node_modules/bal-util/out/lib/modules.js:66:32)
    at DocPad.ready.tasks.push._this.emitSync.docpad (/usr/local/lib/node_modules/docpad/out/lib/docpad.js:954:34)
    at Object.balUtilFlow.fireWithOptionalCallback (/usr/local/lib/node_modules/docpad/node_modules/bal-util/out/lib/flow.js:39:27)
    at balUtilFlow.Group._Class.runTask.run (/usr/local/lib/node_modules/docpad/node_modules/bal-util/out/lib/flow.js:543:30)
    at _Class.balUtilFlow.Group._Class.runTask (/usr/local/lib/node_modules/docpad/node_modules/bal-util/out/lib/flow.js:548:11)
    at _Class.balUtilFlow.Group._Class.nextTask (/usr/local/lib/node_modules/docpad/node_modules/bal-util/out/lib/flow.js:517:14)
    at _Class.balUtilFlow.Group._Class.complete (/usr/local/lib/node_modules/docpad/node_modules/bal-util/out/lib/flow.js:436:18)
    at balUtilFlow.Group._Class.completer (/usr/local/lib/node_modules/docpad/node_modules/bal-util/out/lib/flow.js:450:31)
    at /usr/local/lib/node_modules/docpad/out/lib/docpad.js:905:16
    at Object.balUtilFlow.fireWithOptionalCallback (/usr/local/lib/node_modules/docpad/node_modules/bal-util/out/lib/flow.js:32:27)

--

Mads Høbye 
PhD Student in Interaction Design
at Medea Malmö





Benjamin Lupton

unread,
Apr 16, 2013, 11:28:40 AM4/16/13
to doc...@googlegroups.com, ma...@hobye.dk
Hi Mads,

Thanks for your question, and sorry for your late reply. We moved our Q&A over to stack overflow - http://stackoverflow.com/tags/docpad - so no longer maintain this location.

For your problem, it seems that one of the dependencies that was installed is out of date - you can run `npm cache clean` before your `npm install -g docpad` to ensure everything is the latest.

Cheers,
- Ben

Mads Høbye

unread,
Apr 16, 2013, 2:30:02 PM4/16/13
to doc...@googlegroups.com
hey benjamin

I think you solved my problem on the maillinglist. But thanks a lot for responding. I know how tuff it can be to be the one who knows the workings of a system intimately enough to be able to answer :)

Mads


--
You received this message because you are subscribed to the Google Groups "DocPad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docpad+un...@googlegroups.com.
To post to this group, send email to doc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/docpad/-/0ii0hT0trWQJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages