gitbook-cli icon indicating copy to clipboard operation
gitbook-cli copied to clipboard

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

Open ryotlee opened this issue 8 years ago • 40 comments

environment

  • 1.Windows7
  • 2.CLI version: 2.3.0
  • 3.GitBook version: 3.2.2

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

ryotlee avatar Mar 09 '17 06:03 ryotlee

Same issue

ghost avatar May 29 '17 01:05 ghost

Same issue

maoxiangyi avatar May 29 '17 11:05 maoxiangyi

The same issue

zuojj avatar Jul 18 '17 07:07 zuojj

Same issue

ctron avatar Jul 19 '17 09:07 ctron

Same here, starting from 3.0.0.

inosik avatar Jul 21 '17 10:07 inosik

Same issue !! with GitBook version 3.2.2 on Windows 7

bsvobodny avatar Aug 10 '17 13:08 bsvobodny

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

pospi avatar Aug 14 '17 05:08 pospi

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

bluedusk avatar Aug 30 '17 08:08 bluedusk

same~

win10, node 6.11.4, gitbook 3.2.3

Sanford284 avatar Oct 23 '17 07:10 Sanford284

See GitbookIO/gitbook#1309

egoroschenya-sc avatar Oct 26 '17 09:10 egoroschenya-sc

Same issue

freyzheng avatar Mar 07 '18 09:03 freyzheng

Same issue

Litreily avatar May 02 '18 08:05 Litreily

Same issue

yeqiugt avatar Dec 19 '18 02:12 yeqiugt

GitBook 3.2.3. Same issue.

remal avatar Dec 20 '18 18:12 remal

Same issue.

carlosal1015 avatar Dec 25 '18 00:12 carlosal1015

I got it @everyone .

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

mapxn avatar Jan 17 '19 11:01 mapxn

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.

mapxn avatar Jan 17 '19 12:01 mapxn

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

All in all, I've moved to MkDocs.

remal avatar Jan 17 '19 12:01 remal

~/.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 !

db-add2 avatar Jan 17 '19 16:01 db-add2

I got it @everyone .

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

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

taylortaurus avatar Jan 26 '19 06:01 taylortaurus

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

remal avatar Jan 26 '19 18:01 remal

@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.

pospi avatar Jan 29 '19 07:01 pospi

@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.

remal avatar Jan 29 '19 13:01 remal

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

wmxy2005 avatar Feb 01 '19 09:02 wmxy2005

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!!!

9Echo avatar Feb 28 '19 03:02 9Echo

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

breeze-chw avatar Mar 15 '19 08:03 breeze-chw

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

reshuige avatar May 12 '19 06:05 reshuige

I got it @everyone .

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

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

kapaseker avatar Aug 06 '19 06:08 kapaseker

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 !

eastcn avatar Aug 15 '19 07:08 eastcn

关掉360安全卫士就好了

AnDong4213 avatar Oct 10 '19 08:10 AnDong4213