Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / / book/gitbook/git

After gitbook every edit, there will be an Error, which will cause the service started by gitbook Serve to stop. The Error message is :gitbook edit Error: Error: ENOENT: no such file or directory, stat ‘/usr/local/var/www/… /_book/gitbook/gitbook-plugin-livereload/plugin.js’
In the background, a gitbook was newly installed. Every time I edited the MD file in the project, I would catch the above error, which caused me to stop the service started by Gitbook Serve and could not properly browse the newly edited Gitbook.
At the beginning, I didn’t pay attention to the error report. Later, I modified and edited the file several times, and found that after each modification, gitbook service would stop and the error in the paper would be reported. Only to find that this is not a mistake of my operation, but the GITbok has a problem, find a problem for a while, no idea, baidu once, the original gitbook itself bug, the original gitbook is a configuration to the wrong configuration. The specific modification methods are as follows:
1. Find gitbook’s configuration file address (Mac system) in the user directory: CD ~ can jump to the current user’s user directory
2. Find ~ /. Gitbook/versions/3.2.3/lib/output/website/copyPluginAssets js file, and then find this file inside all confirm configuration items (2) total, will change the original values true or false.

confirm: false

There are 2 places in total, just change them.

Read More: