gitbook cli dev server fails. #308
-
Running I have followed the instructions in the quickstart, followed by the steps in the cli/reference. I have created a space on When I run
Noticed the link to the development section (it would be good if the links were a different color than the text in your docs.) Apparently I need to publish the app before I can do any development.
... which appears very similar to the error I got previously. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hey @dougscc - Can you run |
Beta Was this translation helpful? Give feedback.
-
@addisonschultz Latest, according to npm. $ gitbook --version
0.10.0 |
Beta Was this translation helpful? Give feedback.
-
In the integration you're trying to publish - have you installed dependencies? Also, did you start your project using the gitbook cli as well? |
Beta Was this translation helpful? Give feedback.
-
@addisonschultz unfortunately it does not appear to have helped $ gitbook dev <space id>
\ Starting dev server...
node:events:492
throw er; // Unhandled 'error' event
^
Error: spawn C:\Users\ShawhanD\Projects\gitbook-cli\venv\Scripts\node_modules\@g
itbook\cli\dist\cloudflared ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:2
1)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:2
1) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn C:\\Users\\ShawhanD\\Projects\\gitbook-cli\\venv\\Scripts\\nod
e_modules\\@gitbook\\cli\\dist\\cloudflared',
path: 'C:\\Users\\ShawhanD\\Projects\\gitbook-cli\\venv\\Scripts\\node_modules
\\@gitbook\\cli\\dist\\cloudflared',
spawnargs: [ 'tunnel', '--no-autoupdate', '--url', 'http://localhost:51959' ]
}
Node.js v20.5.1
|
Beta Was this translation helpful? Give feedback.
Thanks for all the debugging - I've been looking into this with one of our engineers and seems like it's isolated to Windows machines at the moment. We've filed a bug and will have to triage this a bit more before we can fix it.
Are you able to use a virtual machine / OS in the meantime? Apologies for the inconvenience