Error Building

Hi there,

I’m trying to build the documentation via I’ve replaced the Linux commands with Windows commands in (this was my first error), so (I assume) previous content would be deleted. But now I am running into another error. The npm command line output is as follows:

C:\Users\André Zensen\Desktop\bpmn-js-doc\>npm run build

> documentation@1.0.0 build C:\Users\André Zensen\Desktop\bpmn-js-doc\
> node index.js && hugo -s docs

Removing some stuff..
Creating structure..
Parsing to markdown..
Creating search.json..
Documentation generated!
hugo not downloaded yet. attempting to grab it...
fetched hugo v0.14
extracting archive...
we got it, let's go!

      throw er; // Unhandled 'error' event

Error: spawn C:\Users\André Zensen\Desktop\bpmn-js-doc\\no
    at exports._errnoException (util.js:870:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at nextTickCallbackWith2Args (node.js:442:9)
    at process._tickCallback (node.js:356:17)

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.4.5
npm ERR! npm  v2.15.5
npm ERR! documentation@1.0.0 build: `node index.js && hugo -s docs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the documentation@1.0.0 build script 'node index.js && hugo -
s docs'.
npm ERR! This is most likely a problem with the documentation package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index.js && hugo -s docs
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs documentation
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls documentation
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\André Zensen\Desktop\pmn-js-doc\\npm-debug.log

I’m not sure if the path to the hugo.exe is correct, as it displays it as .exe.exe (\\no
de_modules\hugo-cli\tmp\hugo_0.14_windows_amd64\hugo_0.14_windows_amd64.exe.exe) and if this causes the error? Or if the events.js has a typo as seen here:

      throw er; // Unhandled 'error' event

Not sure where to find this file either.

Best regards

Hello @Andre_Zensen,

that seems to be a problem with a dependency, I’ve raised an issue for it. But the docs project is still in an early stage, it’s missing a lot of documentation. At the moment, the best way to go about it is reading the comments on the source code (the documentation is generated from it).


Okay, thank you. I shall dive into the code some more then!