vscode本地调试gitbook

1. windows下载安装git

2.安装nodejs

下载安装nvm

https://github.com/coreybutler/nvm-windows/releases/download/1.1.9/nvm-setup.exe

安装配置nodejs

C:\Users\Administrator>nvm install 10
    Downloading node.js version 10.24.1 (64-bit)...
    Complete
    Creating C:\Users\Administrator\AppData\Roaming\nvm\temp

    Downloading npm version 6.14.12... Complete
    Installing npm v6.14.12...

    Installation complete. If you want to use this version, type

    nvm use 10.24.1

C:\Users\Administrator>nvm use 10.24.1
    Now using node v10.24.1 (64-bit)

C:\Users\Administrator>npm config set registry https://registry.npm.taobao.org -g

C:\Users\Administrator>npm config get registry https://registry.npm.taobao.org/
    https://registry.npm.taobao.org/

3. 安装gitbook

C:\Users\Administrator>npm install gitbook-cli -g
    C:\Program Files\nodejs\gitbook -> C:\Program Files\nodejs\node_modules\gitbook-cli\bin\gitbook.js
    + gitbook-cli@2.3.2
    added 578 packages from 672 contributors in 17.281s

C:\Users\Administrator>gitbook -V
    CLI version: 2.3.2
    Installing GitBook 3.2.3
    ...
    GitBook version: 3.2.3

4.vscode克隆gitbook git代码

img

5. vscode terminal 执行测试

gitbook build
gitbook serve

img

posted @ 2024-01-22 14:29  李济宏(Amadeus)  阅读(60)  评论(0编辑  收藏  举报