Hexo-theme-next: 升级到7.2.0后无法统计文章字数

Created on 2 Jul 2019  ·  5Comments  ·  Source: theme-next/hexo-theme-next

依赖:
"hexo-symbols-count-time": "^0.4.4"

相关配置_config.yml

symbols_count_time:
  symbols: true
  time: true
theme_config: 
  symbols_count_time:
    separated_meta: true
    item_text_post: true
    item_text_total: false
    awl: 2
    wpm: 300

所有文章都显示:
image

Question Solved

Most helpful comment

npm i hexo-symbols-count-time@latest
# or
npm i [email protected]
# or
rm package-lock.json
npm i hexo-symbols-count-time
# or
npm un hexo-symbols-count-time
npm i hexo-symbols-count-time

All 5 comments

hexo-symbols-count-time的最新版本是0.6.0,需要升级或重新安装
https://github.com/theme-next/hexo-symbols-count-time/releases

GitHub
Symbols count and time to read of articles plugin for Hexo. - theme-next/hexo-symbols-count-time

I used the CI deployment with npm install hexo-symbols-count-time --save, but still has no counts.

$ npm install hexo-symbols-count-time --save
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ [email protected]
updated 1 package and audited 17841 packages in 4.424s
found 3 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

I have no idea why npm installed v0.3.2 (an outdated version) by default...
https://www.npmjs.com/package/hexo-symbols-count-time

Try:

npm install hexo-symbols-count-time@^0.6.0 --save
npm i hexo-symbols-count-time@latest
# or
npm i [email protected]
# or
rm package-lock.json
npm i hexo-symbols-count-time
# or
npm un hexo-symbols-count-time
npm i hexo-symbols-count-time

多谢回答,把hexo-symbols-count-time升级到0.6.0就解决了

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yongjunwen picture yongjunwen  ·  6Comments

D-zilch picture D-zilch  ·  7Comments

dslztx picture dslztx  ·  7Comments

hsiangfeng picture hsiangfeng  ·  5Comments

codenoobforreal picture codenoobforreal  ·  3Comments