GitbookIO / gitbook-cli

GitBook's command line interface
717 stars 212 forks source link

gitbook serve error with ENOENT: no such file or directory(fontsettings.js&website.css) #55

Open ryotlee opened 7 years ago

ryotlee commented 7 years ago

environment

when run code gitbook serve or gitbook build ;I've found an error

Error: ENOENT: no such file or directory, stat 'D:\Desktop\gitbooks\testbook_book\gitbook\gitbook-p lugin-fontsettings\fontsettings.js',
Error: ENOENT: no such file or directory, stat 'D:\Desktop\gitbo oks\testbook_book\gitbook\gitbook-plugin-fontsettings\website.css'

but when i run with gitbook-v2.0.1 it's ok

gitbook build ./MyGitBook --gitbook=2.0.1

everything is ok

info: loading book configuration.... warn: you should specify a gitbook version to use in your book.json, for example: 2.x.x info: OK info: >> 0 plugins loaded info: start generation with website generator info: clean website generator info: OK info: generation is finished

Done, without error

ghost commented 7 years ago

Same issue

maoxiangyi commented 7 years ago

Same issue

zuojj commented 7 years ago

The same issue

ctron commented 7 years ago

Same issue

inosik commented 7 years ago

Same here, starting from 3.0.0.

bsvobodny commented 7 years ago

Same issue !! with GitBook version 3.2.2 on Windows 7

pospi commented 7 years ago

As a workaround, just put module.exports = {} in fontsettings.js. Upon next restart it will be filled out with some generated content.

bluedusk commented 7 years ago

same issue on windows7. 1.Windows7 2.CLI version: 2.3.2 3.GitBook version: 3.2.3

Sanford284 commented 7 years ago

same~

win10, node 6.11.4, gitbook 3.2.3
egoroschenya-sc commented 7 years ago

See GitbookIO/gitbook#1309

freyzheng commented 6 years ago

Same issue

Litreily commented 6 years ago

Same issue

yeqiugt commented 5 years ago

Same issue

remal commented 5 years ago

GitBook 3.2.3. Same issue.

carlosal1015 commented 5 years ago

Same issue.

mapxn commented 5 years ago

I got it @everyone .

I turn off my virus-killing software. Then that's OK

mapxn commented 5 years ago

Another way to solve this issue is that:

cd ~/.gitbook/versions/版本/lib/output/website/ vim copyPluginAssets.js try to delete confirm: ture in the bottom, about line112.

remal commented 5 years ago

@retp, it doen't help. The issue still occurs.

All in all, I've moved to MkDocs.

db-add2 commented 5 years ago

~/.gitbook/versions/lib/output/website/copyPluginAssets.js

Line 112

return fs.copyDir(
        assetsFolder,
        assetOutputFolder,
        {
            deleteFirst: false,
            overwrite: true,
            // Edited this line
            confirm: false
        }
    );

helps me :)

Thanks to @retp !

taylortaurus commented 5 years ago

I got it @everyone .

I turn off my virus-killing software. Then that's OK

thx, i close huorong software, gitbook can build successfully.

remal commented 5 years ago

@retp My linux CI server doesn't have antivirus software installed. But I've faced the issue. And removing "confirm: true" hasn't helped.

pospi commented 5 years ago

@remal what about OpenVPN or a tunneled network? I wouldn't have thought they'd present an issue, but... I have those. You never know.

remal commented 5 years ago

@pospi I use GitLab CI runner, that executes scripts in Docker containers... I confiured GitLab CI runner to spawn a new VM via docker-machine to run Docker containers.

wmxy2005 commented 5 years ago

my md contains special statements such as {% extends 'base.html.twig' %} and this error happened

9Echo commented 5 years ago

Another way to solve this issue is that:

cd ~/.gitbook/versions/版本/lib/output/website/ vim copyPluginAssets.js try to delete confirm: ture in the bottom, about line112.

Thanks!it helps me!!!

breeze-chw commented 5 years ago

Turn off 360 ,火绒 or others security software can solve this problem

reshuige commented 5 years ago

关闭杀毒软件 就可以解决这个问题~

kapaseker commented 5 years ago

I got it @everyone .

I turn off my virus-killing software. Then that's OK

thx so much !!!!!!!!!!!!!!!!!!!!!!!!!!!!

eastcn commented 5 years ago

I got it @everyone .

I turn off my virus-killing software. Then that's OK

thx, i close huorong software, gitbook can build successfully.

thx !

AnDong4213 commented 5 years ago

关掉360安全卫士就好了

MrHeLi commented 4 years ago

I got it @everyone .

I turn off my virus-killing software. Then that's OK

"turn off virus-killing software", It works.

Audio commented 4 years ago

cd ~/.gitbook/versions/版本/lib/output/website/ vim copyPluginAssets.js try to delete confirm: ture in the bottom, about line112.

Bug in confirm: true is fixed in cpr@3 (https://github.com/davglass/cpr/pull/57), but gitbook still depends on cpr@1.

Installation of patched cpr using gitbook's npm:

cd ~/.gitbook/versions/3.2.3
npx npm install cpr@3
sbkg0002 commented 4 years ago

@Audio it doesnt seem to work :( Thanks though

GeekOliver commented 4 years ago

Another way to solve this issue is that:

cd ~/.gitbook/versions/版本/lib/output/website/ vim copyPluginAssets.js try to delete confirm: ture in the bottom, about line112.

you make my gitbook works, thx

dudw2019 commented 3 years ago

cd ~/.gitbook/versions/版本/lib/output/website/ vim copyPluginAssets.js try to delete confirm: ture in the bottom, about line112.

Bug in confirm: true is fixed in cpr@3 (davglass/cpr#57), but gitbook still depends on cpr@1.

Installation of patched cpr using gitbook's npm:

cd ~/.gitbook/versions/3.2.3
npx npm install cpr@3

thx, it works!

alextinng commented 3 years ago

same issue

cccyaa commented 3 years ago

I got it @everyone .

I turn off my virus-killing software. Then that's OK

works for me! thanks

pacocom commented 3 years ago

Same error, please fix.

Windows 10 + WSL2 + GitBook 3.2.3

QuAzI commented 3 years ago

cd ~/.gitbook/versions/版本/lib/output/website/ vim copyPluginAssets.js try to delete confirm: ture in the bottom, about line112.

Bug in confirm: true is fixed in cpr@3 (davglass/cpr#57), but gitbook still depends on cpr@1.

Installation of patched cpr using gitbook's npm:

cd ~/.gitbook/versions/3.2.3
npx npm install cpr@3

this fix helps with fontsettings error but site still not generating. Output directory always empty even if I try real projects like github.com:eucariot/SDSM.git with v3.2.3. v4.0.0-alpha.6 generates empty pages. gitbook update tries to setup v2.6.9 which is also not work

Looks like commercialization kills this project

lucumt commented 1 year ago

Another way to solve this issue is that:

cd ~/.gitbook/versions/版本/lib/output/website/ vim copyPluginAssets.js try to delete confirm: ture in the bottom, about line112.

it works like a charm!