Comments (11)
可能是nodejs版本太低了,最好升级到6.x吧
from blogbackup.
怎么生成主页文章?
from blogbackup.
执行了npm i hexo-generator-json-content --save,还是无法生成博客所有文章
from blogbackup.
我的也是!还是无法生成所有文章
from blogbackup.
在根路径(博客的路径,不是主题路径)的 _config.yml文件中将jsonContent的相关内容加上,或者参考作者博客备份的根路径_config.yml文件。
from blogbackup.
是在根目录执行的npm i hexo-generator-json-content --save
也配置了,还是没有生成 所有文章
from blogbackup.
➜ 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.
➜ 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.
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.
求解
from blogbackup.
我一开始也是这样,你用管理员身份进入doc模式,然后在进行安装
from blogbackup.
Related Issues (20)
- 相册 HOT 1
- 你好请问_config.yml文件中subtitle字体颜色如何修改
- 微信分享二维码怎么出不来呢 HOT 2
- 相册问题
- 修改yilia 下_config.yml
- 一个有关点击"所有文章"提示"缺失模块"问题一直解决不了 HOT 2
- excerpt_link: 'more' 未截断 HOT 7
- 对于subnav中没有的nav应该怎么加icon呢
- 请问如何更改名字,就是如何将左侧的John Doe改为litten? HOT 2
- 请问哪个标签在哪添加?
- 文章没被截断:disappointed_relieved: HOT 2
- 文章不想展示出来,怎么做? HOT 1
- 标签展示问题
- 如何只显示预览不显示全文 HOT 2
- layout/_partial/post/category.ejs
- 很笨蛋的问题请教 HOT 2
- 邮箱提示找不到
- subnav能不能加个csdn的图标样式哦,感觉csdn也是挺常用的
- 一个小白的憨憨问题
- hexo 版本升级相册似乎不能用
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blogbackup.