gitbook-cli
gitbook-cli copied to clipboard
Error runing gitbook serve or build
Hi, I have a the following problem, it happens when i run gitbook serve or gitbook build
gitbook build ./ --log=debug --debug
debug: readme found at README.md debug: summary file found at SUMMARY.md debug: cleanup folder "/home/aparra/Documentos/MY_BOOK/book/_book" info: 7 plugins are installed info: 5 explicitly listed info: loading plugin "highlight"... OK info: loading plugin "search"... OK info: loading plugin "lunr"... OK info: loading plugin "fontsettings"... OK info: loading plugin "theme-default"... OK info: found 5 pages info: found 0 asset files debug: calling hook "config" debug: calling hook "init" debug: copy assets from theme /home/aparra/.gitbook/versions/3.2.0/node_modules/gitbook->plugin-theme-default/_assets/website debug: copy resources from plugin /home/aparra/.gitbook/versions/3.2.0/node_modules/gitbook->plugin-fontsettings/assets ```
Error: ENOENT: no such file or directory, stat '/home/aparra/Documentos/MY_BOOK/book/_book/gitbook/gitbook-plugin-fontsettings/fontsettings.js'
If a run stat '/home/aparra/Documentos/MY_BOOK/book/_book/gitbook/gitbook-plugin-fontsettings/fontsettings.js' I got:
File: ‘/home/aparra/Documentos/MY_BOOK/book/_book/gitbook/gitbook-plugin-fontsettings/fontsettings.js’ Size: 6447 Blocks: 16 IO Block: 1048576 regular file Device: 26h/38d Inode: 13769313 Links: 1 Access: (0644/-rw-r--r--) Uid: (10009/ aparra) Gid: (10000/zoi-users) Access: 2016-08-17 10:49:12.356102904 -0400 Modify: 2016-08-17 10:49:12.360102870 -0400 Change: 2016-08-17 10:49:12.360102870 -0400
This only happens when I'm working in my home (which is imported through NFS), when I'm working locally (perhaps in /opt), this error doesn't occur. Look
gitbook build ./ --log=debug --debug
debug: readme found at README.md debug: summary file found at SUMMARY.md debug: cleanup folder "/opt/adolfo/MY_BOOK/book/_book" info: 7 plugins are installed info: 5 explicitly listed info: loading plugin "highlight"... OK info: loading plugin "search"... OK info: loading plugin "lunr"... OK info: loading plugin "fontsettings"... OK info: loading plugin "theme-default"... OK info: found 5 pages info: found 0 asset files debug: calling hook "config" debug: calling hook "init" debug: copy assets from theme /home/aparra/.gitbook/versions/3.2.0/node_modules/gitbook-plugin-theme-default/_assets/website debug: copy resources from plugin /home/aparra/.gitbook/versions/3.2.0/node_modules/gitbook-plugin-fontsettings/assets debug: copy resources from plugin /home/aparra/.gitbook/versions/3.2.0/node_modules/gitbook-plugin-lunr/assets debug: copy resources from plugin /home/aparra/.gitbook/versions/3.2.0/node_modules/gitbook-plugin-search/assets debug: copy resources from plugin /home/aparra/.gitbook/versions/3.2.0/node_modules/gitbook-plugin-highlight/css debug: generate page "README.md" debug: calling hook "page:before" debug: calling hook "page" debug: index page README.md debug: generate page "chapters/aws.md" debug: calling hook "page:before" debug: calling hook "page" debug: index page chapters/aws.md debug: generate page "chapters/api-server.md" debug: calling hook "page:before" debug: calling hook "page" debug: index page chapters/api-server.md debug: generate page "chapters/client-server.md" debug: calling hook "page:before" debug: calling hook "page" debug: index page chapters/client-server.md debug: generate page "chapters/staging-server.md" debug: calling hook "page:before" debug: calling hook "page" debug: index page chapters/staging-server.md debug: calling hook "finish:before" debug: calling hook "finish" debug: write search index info: >> generation finished with success in 3.4s !
gitbook --version CLI version: 2.3.0 GitBook version: 3.2.0
Thanks.
Same issue. Works locally on El Capitan, crashes with that exact file missing (same versions of gitbook and gitbook cli) on Jenkins.