Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Docpad Project Boostrap Coffeekup Setup Error #666

Open
oleersoy opened this Issue · 17 comments

5 participants

@oleersoy

When selecting the bootstrap project with coffeekup I get the following:

warning: Your project's local DocPad version is 6.50.0 instead of 6.50.1, you may experience problems. Run docpad update to fix this.
info: DocPad listening to http://localhost:9778/ on directory /home/ole/Documentation/tocgen/out
info: LiveReload listening to new socket on channel /docpad-livereload
info: Generating...
info: Generated 21/21 files in 2.481 seconds
info: Watching setup starting...

Error: Cannot find module 'watchr'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at DocPad.watchdir (/home/ole/Documentation/tocgen/node_modules/docpad/out/lib/docpad.js:1162:12)
at Task.method (/home/ole/Documentation/tocgen/node_modules/docpad/out/lib/docpad.js:3308:23)
at ambi (/home/ole/Documentation/tocgen/node_modules/docpad/node_modules/ambi/out/lib/ambi.js:22:16)
at /home/ole/Documentation/tocgen/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:123:21
at b (domain.js:183:18)
at Domain.run (domain.js:123:23)
at Task.fire (/home/ole/Documentation/tocgen/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:120:21)
at process._tickDomainCallback (node.js:459:13)

events.js:72
throw er; // Unhandled 'error' event
^
Error: write after end
at writeAfterEnd (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/caterpillar/node_modules/readable-stream/lib/_stream_writable.js:130:12)
at Logger.Writable.write (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/caterpillar/node_modules/readable-stream/lib/_stream_writable.js:178:5)
at Logger.log (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/caterpillar/out/lib/caterpillar.js:190:10)
at DocPad.log (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/docpad.js:1936:16)
at DocPad.log (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/docpad.js:4:59)
at forward (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/docpad.js:3002:14)
at /home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/docpad.js:3017:17
at /home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/util.js:28:18
at TaskGroup. (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/safeps/out/lib/safeps.js:106:45)
at TaskGroup.g (events.js:175:14)
at TaskGroup.EventEmitter.emit (events.js:98:17)
at TaskGroup.complete (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:389:12)
at TaskGroup.itemCompletionCallback (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:247:15)
at TaskGroup.EventEmitter.emit (events.js:98:17)
at Task. (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:274:24)
at Task.EventEmitter.emit (events.js:117:20)
at Task.completionCallback (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:88:17)
at ChildProcess. (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/safeps/out/lib/safeps.js:156:20)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)

If I try to update docpad I get this:

ole@tungsten:~/Documentation/tocgen$ docpad update

module.js:340
throw err;
^
Error: Cannot find module 'lazy-require'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/ole/Documentation/tocgen/node_modules/docpad/out/lib/docpad.js:11:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
An error occured within the child DocPad instance: exited with a non-zero status code
ole@tungsten:~/Documentation/tocgen$ docpad install watchr

module.js:340
throw err;
^
Error: Cannot find module 'lazy-require'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/ole/Documentation/tocgen/node_modules/docpad/out/lib/docpad.js:11:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
An error occured within the child DocPad instance: exited with a non-zero status code
ole@tungsten:~/Documentation/tocgen$ docpad update

module.js:340
throw err;
^
Error: Cannot find module 'lazy-require'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/ole/Documentation/tocgen/node_modules/docpad/out/lib/docpad.js:11:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
An error occured within the child DocPad instance: exited with a non-zero status code


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

@greduan
Owner

@oleersoy I'm sorry to hear you're having problems. I'm looking at those errors you posted it seems the cause is this line: Error: Cannot find module 'watchr'

Could you please run docpad update in your project's root folder (where the package.json and docpad.coffee files are found) so that DocPad may update it's local version and also make sure every dependency is installed? Thanks. :)

@oleersoy
@greduan
Owner

whoops forgot to say docpad update should be run inside your project folder. docpad upgrade can be run anywhere however, though considering an install issue, running npm install -g docpad instead of docpad upgrade would be better.

@balupton
Owner

Sorry to hear you're having trouble.

Definitely seems like something has gone wrong with installing the modules. Could you cross post this on https://github.com/isaacs/npm under a title like "npm failing to install some dependencies" as you will probably get the best help there, as it seems the issue is more related to npm than docpad.

What is your internet connection like?

@oleersoy

Hello Benjamin and Eduan,

My internet connection performs great. At least youtube looks good :). I did some more experimentation that I wanted to make you aware of before I crosspost. One thing I am curious about though is that docpad keeps telling me to upgrade even after I have upgraded. Specifically I have:

1) Run docpad update within the project directory
2) Run docpad update within the home directory
3) Run docpad upgrade within the home directory
4) Ran npm install -g docpad

I then try to install the bootstrap template project from scratch and each time it tells me this:
warning: Your project's local DocPad version is 6.50.0 instead of 6.50.1, you may experience problems. Run docpad update to fix this.

Also, if I do docpad run and select the first option docpad completes successfully.

OK - Now something good, but strange (Maybe the dependencies suitable for option 5 were pulled by option 1). I just tried docpad run with option 5 again, and it did not crash. I now says this at the end:

notice: There's a new version of DocPad available, you should probably upgrade...
current version: 6.50.1
new version: 6.53.1
upgrade instructions: http://docpad.org/upgrade

So I do this:

npm install -g npm; npm install -g docpad@6.53

Which seems to complete fine. No error or warnings. Then I run docpad again with option 5.

I get this again:
info: Installed the skeleton succesfully
notice: Shutting down the global DocPad, and starting up the local
info: Welcome to DocPad v6.50.1
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: cleanurls, coffeekup, coffeescript, eco, less, livereload, marked, partials, related, stylus, text
info: Environment: development
warning: Your project's local DocPad version is 6.50.0 instead of 6.50.1, you may experience problems. Run docpad update to fix this.
info: DocPad listening to http://localhost:9778/ on directory /home/ole/test/out
info: LiveReload listening to new socket on channel /docpad-livereload
info: Generating...
info: Generated 21/21 files in 2.445 seconds
info: Watching setup starting...

Error: Cannot find module 'watchr'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at DocPad.watchdir (/home/ole/test/node_modules/docpad/out/lib/docpad.js:1162:12)
at Task.method (/home/ole/test/node_modules/docpad/out/lib/docpad.js:3308:23)
at ambi (/home/ole/test/node_modules/docpad/node_modules/ambi/out/lib/ambi.js:22:16)
at /home/ole/test/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:123:21
at b (domain.js:183:18)
at Domain.run (domain.js:123:23)
at Task.fire (/home/ole/test/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:120:21)
at process._tickDomainCallback (node.js:459:13)

events.js:72
throw er; // Unhandled 'error' event
^
Error: write after end
at writeAfterEnd (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/caterpillar/node_modules/readable-stream/lib/_stream_writable.js:130:12)
at Logger.Writable.write (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/caterpillar/node_modules/readable-stream/lib/_stream_writable.js:178:5)
at Logger.log (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/caterpillar/out/lib/caterpillar.js:190:10)
at DocPad.log (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/docpad.js:1920:16)
at DocPad.log (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/docpad.js:4:59)
at forward (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/docpad.js:2999:14)
at /home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/docpad.js:3014:17
at /home/ole/.nvm/v0.10.15/lib/node_modules/docpad/out/lib/util.js:28:18
at TaskGroup. (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/safeps/out/lib/safeps.js:105:45)
at TaskGroup.g (events.js:175:14)
at TaskGroup.EventEmitter.emit (events.js:98:17)
at TaskGroup.complete (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:399:12)
at TaskGroup.itemCompletionCallback (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:257:15)
at TaskGroup.EventEmitter.emit (events.js:98:17)
at Task. (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:284:24)
at Task.EventEmitter.emit (events.js:117:20)
at Task.completionCallback (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:92:17)
at ChildProcess. (/home/ole/.nvm/v0.10.15/lib/node_modules/docpad/node_modules/safeps/out/lib/safeps.js:160:20)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)

Which is really strange because it ran fine earlier. Also it's still letting me know to upgrade docpad.

So now I create a new directory and try docpad run with option 1. Here's the result:

ole@tungsten:~$ cd test3
ole@tungsten:~/test3$ docpad run
info: Welcome to DocPad v6.53.1
info: Contribute: http://docpad.org/docs/contribute
info: Plugins:
info: Environment: development
info: Updating the exchange...
This can take a moment...
info: Updated the exchange
info: You are about to create your new project inside your current directory. Below is a list of skeletons to bootstrap your new project:

  1. HTML5 Boilerplate
    HTML5 Boilerplate skeleton for DocPad. Bare essentials for building a modern website with best practices

  2. HTML5 Boilerplate with Grunt
    The HTML5 Boilerplate skeleton with Grunt for concatenation and minification of assets

  3. Twitter Bootstrap
    Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions

  4. Twitter Bootstrap with Jade
    Twitter Bootstrap skeleton for DocPad developed using Jade (a HAML alternative for Node.js)

  5. Twitter Bootstrap with Coffeekup
    Twitter Bootstrap skeleton for DocPad developed using Coffeekup (markup as coffeescript)

  6. Kitchensink
    A DocPad Skeleton useful for showcasing different features and functionality of DocPad. Implemented using Twitter Bootstrap

  7. Benjamin Lupton's Website
    Use Benjamin Lupton's website - http://balupton.com - as the base for your own :)

  8. DocPad's Website
    DocPad's Website

  9. Bevry's Website
    Bevry's Website (the company behind DocPad)

  10. Startup Hostel's Website
    Startup Hostel, the home in paradise for the doers of the world!

  11. NodeChat
    Node Chat, built using Socket.io, DocPad, Backbone.js and Twitter Bootstrap

  12. SlidePad
    Create HTML5 Presentations easily with DocPad

  13. Reveal.js
    Create Reveal.js presentations easily with DocPad

  14. Conference Boilerplate
    A kickstart to create websites for conference/events

  15. Meny
    Create a simple page utilizing the Meny 3D menu

  16. YUI PureCSS
    YUI PureCSS skeleton for DocPad

  17. Zurb Foundation
    A clean responsive template that contains a logical setup for a website + blog

  18. No Skeleton
    Prefer to start from scratch? You can get started without any skeleton if you wish

Which skeleton will you use? [1-18]

  1. HTML5 Boilerplate
  2. HTML5 Boilerplate with Grunt
  3. Twitter Bootstrap
  4. Twitter Bootstrap with Jade
  5. Twitter Bootstrap with Coffeekup
  6. Kitchensink
  7. Benjamin Lupton's Website
  8. DocPad's Website
  9. Bevry's Website
  10. Startup Hostel's Website
  11. NodeChat
  12. SlidePad
  13. Reveal.js
  14. Conference Boilerplate
  15. Meny
  16. YUI PureCSS
  17. Zurb Foundation
  18. No Skeleton > 1 info: Installing the HTML5 Boilerplate skeleton into /home/ole/test3 This can take a moment... Initialized empty Git repository in /home/ole/test3/.git/ From https://github.com/docpad/html5-boilerplate.docpad

taskgroup@3.2.3 preinstall /home/ole/test3/node_modules/docpad-plugin-text/node_modules/taskgroup
node ./cyclic.js

npm http 304 https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/lazy-require
npm http 304 https://registry.npmjs.org/getmac
npm http 304 https://registry.npmjs.org/jschardet
npm http 304 https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/ambi
npm http 304 https://registry.npmjs.org/progressbar
npm http 304 https://registry.npmjs.org/safefs
npm http 304 https://registry.npmjs.org/query-engine
npm http GET https://registry.npmjs.org/safefs
npm http 304 https://registry.npmjs.org/safeps
npm http 304 https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/ambi
npm http 304 https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/strscan
npm http 304 https://registry.npmjs.org/superagent
npm http 304 https://registry.npmjs.org/typechecker

taskgroup@3.2.3 preinstall /home/ole/test3/node_modules/docpad-plugin-partials/node_modules/taskgroup
node ./cyclic.js

npm http 304 https://registry.npmjs.org/watchr
npm http 304 https://registry.npmjs.org/yamljs
npm http 304 https://registry.npmjs.org/promptly
npm http 304 https://registry.npmjs.org/growl
npm http 304 https://registry.npmjs.org/ambi
npm http 304 https://registry.npmjs.org/backbone/1.0.0
npm http 304 https://registry.npmjs.org/ambi
npm http 304 https://registry.npmjs.org/ambi
npm http 304 https://registry.npmjs.org/strscan

typechecker@2.0.6 preinstall /home/ole/test3/node_modules/docpad-plugin-livereload/node_modules/extendr/node_modules/typechecker
node ./cyclic.js

npm http 200 https://registry.npmjs.org/safefs

ambi@2.1.4 preinstall /home/ole/test3/node_modules/docpad/node_modules/ambi
node ./cyclic.js

npm http GET https://registry.npmjs.org/joe
npm http GET https://registry.npmjs.org/joe-reporter-console
npm http GET https://registry.npmjs.org/progress/0.1.0
npm http GET https://registry.npmjs.org/ansicolors
npm http GET https://registry.npmjs.org/ansistyles
npm http GET https://registry.npmjs.org/readable-stream

typechecker@2.0.6 preinstall /home/ole/test3/node_modules/docpad/node_modules/typechecker
node ./cyclic.js

taskgroup@3.2.3 preinstall /home/ole/test3/node_modules/docpad/node_modules/taskgroup
node ./cyclic.js

npm http GET https://registry.npmjs.org/js2coffee
npm http GET https://registry.npmjs.org/requirefresh
npm http GET https://registry.npmjs.org/read
npm http GET https://registry.npmjs.org/eventemitter2

ambi@2.1.4 preinstall /home/ole/test3/node_modules/docpad-plugin-text/node_modules/taskgroup/node_modules/ambi
node ./cyclic.js

typechecker@2.0.6 preinstall /home/ole/test3/node_modules/docpad-plugin-text/node_modules/bal-util/node_modules/typechecker
node ./cyclic.js

npm http 304 https://registry.npmjs.org/joe-reporter-console
npm http 304 https://registry.npmjs.org/progress/0.1.0
npm http 304 https://registry.npmjs.org/joe
npm http 304 https://registry.npmjs.org/ansistyles
npm http 304 https://registry.npmjs.org/readable-stream

ambi@2.1.4 preinstall /home/ole/test3/node_modules/docpad-plugin-partials/node_modules/taskgroup/node_modules/ambi
node ./cyclic.js

npm http 304 https://registry.npmjs.org/js2coffee
npm http 304 https://registry.npmjs.org/requirefresh
npm http 304 https://registry.npmjs.org/ansicolors
npm http 304 https://registry.npmjs.org/read
npm http 304 https://registry.npmjs.org/eventemitter2

typechecker@2.0.6 preinstall /home/ole/test3/node_modules/docpad-plugin-text/node_modules/taskgroup/node_modules/ambi/node_modules/typechecker
node ./cyclic.js

taskgroup@3.2.3 preinstall /home/ole/test3/node_modules/docpad-plugin-text/node_modules/bal-util/node_modules/safefs/node_modules/taskgroup
node ./cyclic.js

npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/cli-color

typechecker@2.0.6 preinstall /home/ole/test3/node_modules/docpad-plugin-partials/node_modules/taskgroup/node_modules/ambi/node_modules/typechecker
node ./cyclic.js

npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/mkdirp/0.3.5
npm http GET https://registry.npmjs.org/fresh/0.2.0
npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/cookie/0.1.0
npm http GET https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/send/0.1.4
npm http GET https://registry.npmjs.org/cookie-signature/1.0.1
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/connect/2.9.0
npm http GET https://registry.npmjs.org/commander/1.2.0
npm http GET https://registry.npmjs.org/mute-stream

ambi@2.1.4 preinstall /home/ole/test3/node_modules/docpad-plugin-text/node_modules/bal-util/node_modules/safefs/node_modules/taskgroup/node_modules/ambi
node ./cyclic.js

npm http GET https://registry.npmjs.org/emitter-component/1.0.0
npm http GET https://registry.npmjs.org/qs/0.6.5
npm http GET https://registry.npmjs.org/formidable/1.0.14
npm http GET https://registry.npmjs.org/mime/1.2.5
npm http GET https://registry.npmjs.org/cookiejar/1.3.0
npm http GET https://registry.npmjs.org/debug

typechecker@2.0.6 preinstall /home/ole/test3/node_modules/docpad-plugin-partials/node_modules/extendr/node_modules/typechecker
node ./cyclic.js

npm http GET https://registry.npmjs.org/cssom
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/cli-color
npm http 304 https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/file
npm http 304 https://registry.npmjs.org/mkdirp/0.3.5
npm http 304 https://registry.npmjs.org/cookie/0.1.0
npm http 304 https://registry.npmjs.org/fresh/0.2.0
npm http 304 https://registry.npmjs.org/methods/0.0.1
npm http 304 https://registry.npmjs.org/send/0.1.4
npm http GET https://registry.npmjs.org/extendable
npm http GET https://registry.npmjs.org/load
npm http 304 https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/es5-ext
npm http GET https://registry.npmjs.org/memoizee
npm http 304 https://registry.npmjs.org/cookie-signature/1.0.1
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/connect/2.9.0
npm http 304 https://registry.npmjs.org/commander/1.2.0
npm http 304 https://registry.npmjs.org/mute-stream
npm http 304 https://registry.npmjs.org/emitter-component/1.0.0
npm http 304 https://registry.npmjs.org/qs/0.6.5
npm http 304 https://registry.npmjs.org/formidable/1.0.14
npm http 304 https://registry.npmjs.org/mime/1.2.5
npm http 304 https://registry.npmjs.org/cookiejar/1.3.0
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/cssom
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/argparse
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/file
npm http 304 https://registry.npmjs.org/extendable
npm http 304 https://registry.npmjs.org/load
npm http 304 https://registry.npmjs.org/es5-ext
npm http 304 https://registry.npmjs.org/memoizee
npm http GET https://registry.npmjs.org/keypress

ws@0.4.31 install /home/ole/test3/node_modules/docpad-plugin-livereload/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/event-emitter
npm http GET https://registry.npmjs.org/next-tick
npm http GET https://registry.npmjs.org/underscore.string
make: Entering directory /home/ole/test3/node_modules/docpad-plugin-livereload/node_modules/ws/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
npm http GET https://registry.npmjs.org/bytes/0.2.0
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http GET https://registry.npmjs.org/multiparty/2.1.8
npm http GET https://registry.npmjs.org/uid2/0.0.2
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/bytes/0.2.0
npm http 304 https://registry.npmjs.org/pause/0.0.1
npm http 304 https://registry.npmjs.org/multiparty/2.1.8
npm http 304 https://registry.npmjs.org/uid2/0.0.2
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
COPY Release/bufferutil.node
CXX(target) Release/obj.target/validation/src/validation.o
npm http 304 https://registry.npmjs.org/next-tick
npm http 304 https://registry.npmjs.org/event-emitter
SOLINK_MODULE(target) Release/obj.target/validation.node
SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
COPY Release/validation.node
make: Leaving directory
/home/ole/test3/node_modules/docpad-plugin-livereload/node_modules/ws/build'
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/stream-counter
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/stream-counter
docpad-plugin-marked@2.1.1 node_modules/docpad-plugin-marked
└── marked@0.2.9

docpad-plugin-coffeescript@2.2.2 node_modules/docpad-plugin-coffeescript
└── coffee-script@1.6.3

docpad-plugin-text@2.3.1 node_modules/docpad-plugin-text
├── taskgroup@3.2.3 (ambi@2.1.4)
└── bal-util@2.3.0 (ambi@2.0.0, extendr@2.0.1, eachr@2.0.2, extract-opts@2.2.0, typechecker@2.0.6, taskgroup@3.1.2, safefs@3.0.3)

docpad-plugin-partials@2.8.0 node_modules/docpad-plugin-partials
├── taskgroup@3.2.3 (ambi@2.1.4)
└── extendr@2.1.0 (typechecker@2.0.6)

docpad-plugin-eco@2.0.2 node_modules/docpad-plugin-eco
└── eco@1.1.0-rc-3 (strscan@1.0.1, coffee-script@1.6.3)

docpad-plugin-stylus@2.4.0 node_modules/docpad-plugin-stylus
├── stylus@0.34.1 (cssom@0.2.5, debug@0.7.2, mkdirp@0.3.5)
└── nib@0.9.2 (stylus@0.31.0)

docpad-plugin-livereload@2.5.3 node_modules/docpad-plugin-livereload
├── extendr@2.1.0 (typechecker@2.0.6)
├── primus@1.4.3 (extendable@0.0.6, load@0.1.4)
└── ws@0.4.31 (tinycolor@0.0.1, options@0.0.5, commander@0.6.1, nan@0.3.2)

docpad@6.53.1 node_modules/docpad
├── lazy-require@1.0.0
├── eachr@2.0.2
├── growl@1.7.0
├── extendr@2.1.0
├── safefs@3.0.3
├── extract-opts@2.2.0
├── caterpillar-filter@2.0.1
├── ambi@2.1.4
├── envfile@1.0.0
├── commander@2.0.0
├── safeps@2.2.8
├── typechecker@2.0.6
├── taskgroup@3.2.3
├── query-engine@1.5.2
├── mime@1.2.11
├── semver@2.1.0
├── progressbar@1.0.2 (progress@0.1.0)
├── caterpillar-human@2.1.0 (ansistyles@0.1.1, ansicolors@0.2.1)
├── event-emitter-grouped@2.3.0 (ambi@2.0.0, taskgroup@3.1.2)
├── watchr@2.4.3 (extendr@2.0.1, bal-util@2.0.5, taskgroup@3.1.2)
├── bal-util@2.3.0 (ambi@2.0.0, extendr@2.0.1, taskgroup@3.1.2)
├── backbone@1.0.0 (underscore@1.5.2)
├── caterpillar@2.0.4 (readable-stream@1.0.17)
├── promptly@0.2.0 (read@1.0.5)
├── jschardet@1.0.2
├── lodash@2.2.1
├── superagent@0.15.4 (methods@0.0.1, cookiejar@1.3.0, qs@0.6.5, emitter-component@1.0.0, mime@1.2.5, debug@0.7.2, formidable@1.0.14)
├── cson@1.4.4 (requirefresh@1.1.2, js2coffee@0.1.4, coffee-script@1.6.3)
├── getmac@1.0.5 (joe@1.3.0, joe-reporter-console@1.2.1)
├── yamljs@0.1.4 (argparse@0.1.15, glob@3.1.21)
└── express@3.4.0 (methods@0.0.1, range-parser@0.0.4, cookie-signature@1.0.1, fresh@0.2.0, buffer-crc32@0.2.1, cookie@0.1.0, send@0.1.4, debug@0.7.2, mkdirp@0.3.5, commander@1.2.0, connect@2.9.0)
info: Installed the skeleton succesfully
notice: Shutting down the global DocPad, and starting up the local
info: Welcome to DocPad v6.53.1, local installation
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: coffeescript, eco, livereload, marked, partials, stylus, text
info: Environment: development
info: DocPad listening to http://localhost:9778/ on directory /home/ole/test3/out
info: LiveReload listening to new socket on channel /docpad-livereload
info: Generating...
info: Generated 19/19 files in 0.93 seconds
info: Watching setup starting...
info: Watching setup
info: The action completed successfully

So it works fine with option 1 and also says I have the latest docpad version, but if I try option 5 it complains. Strange right? Seems to me that the configuration of project 5 is the problem...but I just started working with javascript on the server 2 weeks ago so....

@oleersoy

Maybe this was assigned issue number 666 for a reason :)

@oleersoy

I think I was confused about this because at the time I was thinking that once docpad is updated for one project it's updated for all projects. Seems that package.json decides exactly what versions of docpad, etc. the project will be running with. So when docpad starts the bootstrap project it realizes that it has a newer version of itself and warns about this. So I'm guessing the bootstrap project can be fixed just by updating the dependencies in package.json. Will post more once I have some time to play with it.

@Strajk

I had the same issue (Error: Cannot find module 'watchr' on docpad run and Error: Cannot find module 'lazy-require' on docpad update)

I've tried to uninstall node installed from http://nodejs.org/ and install it via brew install node and now everything works... I'm glad, but at the same time confused because I don't know what helped :)

@balupton
Owner

Interesting, so the official Mac OSX Installer installer from nodejs.org didn't work for you? Perhaps for OSX I should only recommend on http://bevry.me/learn/node-install the NVM way (which is personally the way I use)

@thegreatsunra

I experienced this same issue (Cannot find module 'lazy-require') when running docpad run with the default Mac OS X installer from nodejs.org. I had docpad 6.54.5 installed.

I then installed Node using the NVM instructions at http://bevry.me/learn/node-install and experienced the same issue. I tried brew install node as well but the same thing happened.

After a bit more investigation I narrowed down the issue to the docpad command itself; it was not unique to run. Even trying to run docpad --version threw the Cannot find module 'lazy-require' error.

I decrementally went back through versions of docpad, installing them and testing them via docpad run until I found a version that worked. Docpad 6.50.1 did the trick.

What's really weird is, I then ran npm unbuild -g docpad and reinstalled targeted version numbers of docpad, incrementing versions and testing them until I got all the way to 6.54.5, the release that didn't work when I installed it in the first place! This time around, though, after previously installing and uninstalling docpad 6.50.1, docpad 6.54.5 worked without a hitch.

@greduan
Owner

@thegreatsunra That is some very valuable info. Thank you! :)

@balupton
Owner

I wonder if DocPad could detect this and yell about a busted installation instead of just failing like that.

@oleersoy

Would it help if the docpad version used was locked by the skeleton?

@greduan
Owner

@oleersoy You mean that the skeleton installed the DocPad release it's compatible up to? Or that it only installed a certain version and if you want to upgrade it's at your own risk?

@balupton
Owner

Would it help if the docpad version used was locked by the skeleton?

DocPad versions are locked by skeleton. When you run docpad inside a project, docpad will run the project's installation of DocPad, rather than the global version.

But maybe this is problem... Maybe having this, means that old broken versions of DocPad still run when you clone out a skeleton, and we have to make sure that the skeletons are up to date with the latest versions...

@oleersoy

Sorry - Could have been more clear. Yes - I think docpad should refrain from asking the user to upgrade, in order to avoid unforeseen issues associated with the upgrade and for quicker diagnostics, since we know that the skeleton is in it's intended download state as far as the dependencies that it was developed with goes.

It could be that upgrading will help, but I think it's better if users do this declaratively, so that they become more aware of what changes are being implemented both directly and indirectly as a result of a version change.

@oleersoy

Another aspect that confused me at first was that docpad was asking to be upgraded, and I thought I upgraded it, and then when I started from scratch again with the same skeleton, docpad was asking for an upgrade again.

I understand the architecture now, so it makes sense, but for new users starting out, I would think that this will cause some head scratching. People are used to 1 time updates. Once inkscape is updated, it's upated, you don't have to update it each time you work on a new document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.