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.
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:
- 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
- Error: ENOENT: no such file or directory, uv_cwd Error: Cannot find module
- 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
- /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)
- Syntax Error: Error: ENOENT: no such file or directory, scandir ‘D:
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (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
- How to Fix Module build failed: Error: ENOENT: no such file or directory, scandir xxxxxx\node_…
- Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
- nginx: open() “/var/run/nginx.pid“ failed (2: No such file or directory)