Coder Social home page Coder Social logo

students-learn-task's Issues

怎么样

这个课程怎么样呢。各位报了的哥哥姐姐们。

npm run dev 启动时报错

如题进行到“Installing Gitbook 3.2.3”步骤时报错如下:

TypeError: cb.apply is not a function

在gitbook-cli官方仓库的issue中找到问题:#110
意思是说gitbook-cli依赖的是低版本的graceful-fs只支持nodejs 12-,而事实上高版本的graceful-fs是支持nodejs 13+的

所以动手解决,记录如下:
解决办法1:降级nodejs为v12 (不采用)
解决办法2:升级graceful-fs包到最高版本(采用)

// 需要安装gitbook-cli(全局或者项目)
npm i gitbook-cli -g

// 找到刚才安装的gitbook-cli包的安装位置,升级```graceful-fs```
cd <gitbook-cli DIR> /node_modules/npm/node_modules
npm install graceful-fs@latest --save

// 安装Gitbook 3.2.3
gitbook -V

// 找到用户根目录下的.gitbook文件夹,升级```graceful-fs```
cd <.gitbook DIR> /versions/3.2.3/node_modules/npm
npm install graceful-fs@latest --save

可以启动工程了

proj_root> npm i // 安装依赖
proj_root> npm run dev // 成功

最后想问,就我一人在用nodejs v14?

有同学的文档可能会引起报错

比如这个README

[SyntaxError: Expected " ", " ", "#", "* ", "- ", "- [ ] ", "- [x] ", "\n", "\r", "\r\n", "\t", "", [ -'], [ -@], [*], [+-@], [1-9], [A-Z], [A-], [[], [\-], [\x80-\uFFFF], [_], [a-\xFFFF], [a-z], [~] or end of input but "\b" found.]

这个项目会不会烂尾了?

好像好多天都没人提交了,课程笔记会不会烂尾?
我挺想报名的,5000块不算少我得仔细考察下.
但是看了看课程的笔记,越到后面提交越少,这个课程是不是特别难?

第一次运行,npm run dev 失败

NODEJS:v8.16.0 v10.15.3 v13.12.0 都试了

gitbook -V
CLI version: 2.3.2
GitBook version: 3.2.3

下面是报错信息:

warn: no summary file in this book
info: 22 plugins are installed
info: 15 explicitly listed
info: loading plugin "advanced-emoji"... OK
info: loading plugin "todo"... OK
info: loading plugin "chapter-fold"... OK
info: loading plugin "search-pro"... OK
info: loading plugin "github"... OK
info: loading plugin "splitter"... OK
info: loading plugin "tbfed-pagefooter"... OK
info: loading plugin "hide-element"... OK
info: loading plugin "summary"... OK
info: loading plugin "extra-html"... OK
info: loading plugin "livereload"... OK
info: loading plugin "highlight"... OK
info: loading plugin "sharing"... OK
info: loading plugin "fontsettings"... OK
info: loading plugin "theme-default"... OK
info: found 1 pages
info: found 433 asset files

D:\work\study\students-learn-task\node_modules\markdown-parser\src\parser.js:3556
throw peg$buildException(null, peg$maxFailExpected, peg$maxFailPos);
^
SyntaxError: Expected " ", " ", "#", "* ", "- ", "- [ ] ", "- [x] ", "\n", "\r", "\r\n", "\t", "", [ -'], [ -@], [*], [+-@], [1-9], [A-Z], [A-], [[], [-], [\x80-\uFFFF], [_], [a-\xFFFF], [a-z], [~] or end of input but "\b" found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.