Every time a gitbook is edited, there will be an error that causes the service that has been started through gitbook serve to stop. The error message is: error: enoent: no such file or directory, stat ‘/ usr/local/var/www//_ book/gitbook/gitbook-plugin-livereload/ plugin.js ‘
The background is that a new gitbook has been installed. Every time I edit the MD file in the project, I will hold the above error. As a result, the service I started through gitbook serve will stop and I can’t browse the edited gitbook normally
At the beginning, I didn’t care when I reported the error. The back office revised and edited the file several times, and found that the gitbook service would stop and report the above error after each modification. I found that this was not a mistake in my operation, but a problem with gitbok. After looking for the problem for a while, I didn’t have any idea, so I Baidu found out the bug in gitbook itself, The original configuration of gitbook is wrong. The specific modification method is as follows:
1. Find the configuration file address of gitbook (MAC system) in the user directory: Cd ~ to jump to the user directory of the current user
2. Find ~ /. Gitbook/versions/3.2.3/lib/output/website/ copyPluginAssets.js File, and then find all the confirm configuration items in this file (a total of 2 places), and change the original value of true to false
confirm: false
There are two places in total. Just change them
Read More:
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / / book/gitbook/git
- Error: enoent: no such file or directory, stat
- nginx: [error] open() “/usr/local/var/run/nginx.pid” failed (2: No such file or directory)
- Solve the problem of copy failed: stat / var / lib / docker / TMP / docker builder 455335933 / opt: no such file or directory
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- Error: ENOENT: no such file or directory, mkdir E:\
- Error: ENOENT: no such file or directory, uv_cwd Error: Cannot find module
- Error: enoent: no such file or directory
- NPM installation module encountered enoent: no such file or directory, rename error
- ls: cannot access /usr/sbin/smartctl: No such file or directory /usr/sbin/smartctl not found
- Syntax Error: Error: ENOENT: no such file or directory, scandir ‘D:
- /var/run/nginx/nginx.pid” failed (2: No such file or directory)
- Error: No such keg: /usr/local/Cellar/node&install nvm&brew installation&Oh my zsh.git installation&git set alias&No bundle URL prese
- Ubuntu error: flAbsPath on /var/lib/dpkg/status failed – realpath (2: No such file or directory)
- Error: ENOENT: no such file or directory, open ‘E:\Program Files\nodejs\tmp\upload_38b32f25bc984333c
- Error: no such keg: / usr / local / cellular / node & install NVM & Brew install & oh my Zsh. Git install & git set alias & no bundle URL press
- Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- How to Fix Module build failed: Error: ENOENT: no such file or directory, scandir xxxxxx\node_…
- nginx: open() “/var/run/nginx.pid“ failed (2: No such file or directory)