Giter VIP home page Giter VIP logo

Comments (11)

jiahao42 avatar jiahao42 commented on June 16, 2024

可能是nodejs版本太低了,最好升级到6.x吧

from blogbackup.

XWHQSJ avatar XWHQSJ commented on June 16, 2024

怎么生成主页文章?

from blogbackup.

XWHQSJ avatar XWHQSJ commented on June 16, 2024

执行了npm i hexo-generator-json-content --save,还是无法生成博客所有文章

from blogbackup.

lecochao avatar lecochao commented on June 16, 2024

我的也是!还是无法生成所有文章

from blogbackup.

licuix avatar licuix commented on June 16, 2024

在根路径(博客的路径,不是主题路径)的 _config.yml文件中将jsonContent的相关内容加上,或者参考作者博客备份的根路径_config.yml文件。

from blogbackup.

RoshanGH avatar RoshanGH commented on June 16, 2024

是在根目录执行的npm i hexo-generator-json-content --save
也配置了,还是没有生成 所有文章

from blogbackup.

RoshanGH avatar RoshanGH commented on June 16, 2024

➜ blog git:(master) ✗ npm i hexo-generator-json-content --save
[email protected] node_modules/hexo-generator-json-content
├── [email protected]
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

from blogbackup.

RoshanGH avatar RoshanGH commented on June 16, 2024

➜ blog git:(master) ✗ hexo generate
ERROR Plugin load failed: hexo-generator-json-content
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at Object.exports.runInThisContext (vm.js:53:16)
at /Users/roshan/www/bbc56/github/blog/node_modules/hexo/lib/hexo/index.js:227:17
at tryCatcher (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:504:31)
at Promise._settlePromise (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
at Promise._settlePromise0 (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
at Promise._settlePromises (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
at Promise._fulfill (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
at Promise._resolveCallback (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:425:57)
at Promise._settlePromiseFromHandler (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:516:17)
at Promise._settlePromise (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:561:18)
at Promise._settlePromise0 (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:606:10)
at Promise._settlePromises (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:685:18)
at Promise._fulfill (/Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/promise.js:630:18)
at /Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/bluebird/js/release/nodeback.js:42:21
at /Users/roshan/www/bbc56/github/blog/node_modules/hexo/node_modules/hexo-fs/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
INFO Start processing
INFO Files loaded in 897 ms
INFO 0 files generated in 703 ms

from blogbackup.

RoshanGH avatar RoshanGH commented on June 16, 2024

blog git:(master) ✗ brew info node
node: stable 8.9.1 (bottled), HEAD
Platform built on V8 to build network applications
https://nodejs.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/node.rb
==> Dependencies
Build: pkg-config
Recommended: icu4c ✘
Optional: openssl ✘
==> Options
--with-debug
Build with debugger hooks
--with-openssl
Build against Homebrew's OpenSSL instead of the bundled OpenSSL
--without-completion
npm bash completion will not be installed
--without-icu4c
Build with small-icu (English only) instead of system-icu (all locales)
--without-npm
npm will not be installed
--HEAD
Install HEAD version

from blogbackup.

RoshanGH avatar RoshanGH commented on June 16, 2024

求解

from blogbackup.

caozhengbo avatar caozhengbo commented on June 16, 2024

我一开始也是这样,你用管理员身份进入doc模式,然后在进行安装

from blogbackup.

Related Issues (20)

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.