gitbook install ./content #3

Open
latel opened this Issue Dec 15, 2015 · 4 comments

Projects

None yet

3 participants

@latel
latel commented Dec 15, 2015

到这步老是办错啊。。。

@zhaoda
Owner
zhaoda commented Dec 15, 2015

什么错误?能贴一下么?

@jiushiliu

npm ERR! Failed at the webpack-handbook@0.0.3 serve-gitbook script 'gitbook serve ./content ./gh-pages'.

@zhaoda
Owner
zhaoda commented Aug 16, 2016

@latel 是什么系统,我是mac,我这个步骤的日志帖给你们看看,没发现错误。

info: 6 plugins to install
info: No version specified, resolve plugin github
info: install plugin github from npm (gitbook-plugin-github) with version 2.0.0
info: >> plugin github installed with success
info: No version specified, resolve plugin editlink
info: install plugin editlink from npm (gitbook-plugin-editlink) with version 1.0.2
info: >> plugin editlink installed with success
info: No version specified, resolve plugin prism
info: install plugin prism from npm (gitbook-plugin-prism) with version 1.0.0
info: >> plugin prism installed with success
info: No version specified, resolve plugin baidu
info: install plugin baidu from npm (gitbook-plugin-baidu) with version 0.1.0
gitbook-plugin-baidu@0.1.0 content/node_modules/gitbook-plugin-baidu
info: >> plugin baidu installed with success
info: No version specified, resolve plugin ad
info: install plugin ad from npm (gitbook-plugin-ad) with version 0.0.4
info: >> plugin ad installed with success
info: No version specified, resolve plugin sitemap
info: install plugin sitemap from npm (gitbook-plugin-sitemap) with version 1.1.0
info: >> plugin sitemap installed with success

Done, without error
@zhaoda
Owner
zhaoda commented Aug 16, 2016

@jiushiliu 这句是启动gitbook服务,日志如下

➜  webpack-handbook git:(master) gitbook serve ./content ./gh-pages
Live reload server started on port: 35729
Press CTRL+C to quit ...

info: loading book configuration....OK
info: load plugin gitbook-plugin-github ....OK
info: load plugin gitbook-plugin-editlink ....OK
info: load plugin gitbook-plugin-prism ....OK
info: load plugin gitbook-plugin-baidu ....OK
info: load plugin gitbook-plugin-ad ....OK
info: load plugin gitbook-plugin-sitemap ....OK
info: load plugin gitbook-plugin-highlight ....OK
info: load plugin gitbook-plugin-search ....OK
info: load plugin gitbook-plugin-sharing ....OK
info: load plugin gitbook-plugin-fontsettings ....OK
info: load plugin gitbook-plugin-livereload ....OK
info: >> 11 plugins loaded
info: start generation with website generator
info: clean website generator
info: OK
info: generation is finished

Starting server ...
Serving book on http://localhost:4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment