crifan / gitbook_template

演示如何使用crifan的gitbook的模板去创建自己的gitbook电子书
112 stars 34 forks source link

error when `make init` #2

Open kelvinji2009 opened 3 years ago

kelvinji2009 commented 3 years ago

Log Details:

★☠️ ★  gitbook_demo git:(master) 🐾  »gitbook -V
CLI version: 2.3.2
GitBook version: 3.2.3
★☠️ ★  gitbook_demo git:(master) »make init
--------------------------------------------------------------------------------
Author  : crifan.com
Version : 20200918
Function: Auto use gitbook to generated files: website/pdf/epub/mobi; upload to remote server; commit to your github.io repository
        Run 'make help' to see usage
--------------------------------------------------------------------------------
CURRENT_DIR=/Users/kelvinji/mitnick/dev/wip/gitbook/gitbook_template/books/gitbook_demo
BOOK_NAME=gitbook_demo
NOT found gitbook_demo in IGNORE_FILE_CONTENT=
rm -f book.json
rm -f README.md
Complete load json from /Users/kelvinji/mitnick/dev/wip/gitbook/gitbook_template/books/gitbook_demo/README_current.json
Complete save file /Users/kelvinji/mitnick/dev/wip/gitbook/gitbook_template/books/gitbook_demo/README.md
cp README.md ./src/README.md
cp /Users/kelvinji/mitnick/dev/wip/gitbook/gitbook_template/common/config/common/common_gitignore .gitignore
Complete sync content
gitbook install
info: installing 17 plugins using npm@3.9.2
info:
info: installing plugin "theme-comscore"
info: install plugin "theme-comscore" (*) from NPM with version 0.0.3
/Users/kelvinji/mitnick/dev/wip/gitbook/gitbook_template/books/gitbook_demo
└── gitbook-plugin-theme-comscore@0.0.3

Error: EEXIST: file already exists, mkdir '/Users/kelvinji/mitnick/dev/wip/gitbook/gitbook_template/books/gitbook_demo/node_modules'
make: *** [install] Error 1
crifan commented 3 years ago

seems the default soft link folder gitbook_template/books/gitbook_demo/node_modules cause this error. solution: delete gitbook_template/books/gitbook_demo/node_modules, then make init again.

Note: I will update the tutorial readme.

kelvinji2009 commented 3 years ago

seems the default soft link folder gitbook_template/books/gitbook_demo/node_modules cause this error. solution: delete gitbook_template/books/gitbook_demo/node_modules, then make init again.

Note: I will update the tutorial readme.

Thanks very much. It works well after deleted the softlink.