hexo升级

本文最后更新于:3 年前

2020过去了,博客也建了几年了。hero也出到5.3.0,而我也的还是3.8.0 -.- ,是时候改升级下hexo了。

全局升级hexo(mac全局安装,需在命令前添加sudo

1
npm i hexo-cli -g

安装npm-check(mac全局安装,需在命令前添加sudo
1
npm i npm-check -g

运行npm-check,查看需要升级的插件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
➜  blog git:(master) ✗ npm-check

hexo 😎 MAJOR UP Major update available. https://hexo.io/
npm install --save hexo@5.3.0 to go from 3.9.0 to 5.3.0

hexo-abbrlink 😕 NOTUSED? Still using hexo-abbrlink?
Depcheck did not find code similar to require('hexo-abbrlink') or import from 'hexo-abbrlink'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-abbrlink

hexo-deployer-git 😎 MAJOR UP Major update available. https://hexo.io/
npm install --save hexo-deployer-git@2.1.0 to go from 0.3.1 to 2.1.0
😕 NOTUSED? Still using hexo-deployer-git?
Depcheck did not find code similar to require('hexo-deployer-git') or import from 'hexo-deployer-git'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-deployer-git

hexo-deployer-rsync 😎 MAJOR UP Major update available. http://hexo.io/
npm install --save hexo-deployer-rsync@1.0.0 to go from 0.1.3 to 1.0.0
😕 NOTUSED? Still using hexo-deployer-rsync?
Depcheck did not find code similar to require('hexo-deployer-rsync') or import from 'hexo-deployer-rsync'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-deployer-rsync

hexo-filter-flowchart 😕 NOTUSED? Still using hexo-filter-flowchart?
Depcheck did not find code similar to require('hexo-filter-flowchart') or import from 'hexo-filter-flowchart'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-filter-flowchart

hexo-generator-archive 😎 MAJOR UP Major update available. http://hexo.io/
npm install --save hexo-generator-archive@1.0.0 to go from 0.1.5 to 1.0.0
😕 NOTUSED? Still using hexo-generator-archive?
Depcheck did not find code similar to require('hexo-generator-archive') or import from 'hexo-generator-archive'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-generator-archive

hexo-generator-baidu-sitemap 😕 NOTUSED? Still using hexo-generator-baidu-sitemap?
Depcheck did not find code similar to require('hexo-generator-baidu-sitemap') or import from 'hexo-generator-baidu-sitemap'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-generator-baidu-sitemap

hexo-generator-category 😎 MAJOR UP Major update available. https://hexo.io/
npm install --save hexo-generator-category@1.0.0 to go from 0.1.3 to 1.0.0
😕 NOTUSED? Still using hexo-generator-category?
Depcheck did not find code similar to require('hexo-generator-category') or import from 'hexo-generator-category'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-generator-category

hexo-generator-index 😎 MAJOR UP Major update available. http://hexo.io/
npm install --save hexo-generator-index@2.0.0 to go from 0.2.1 to 2.0.0
😕 NOTUSED? Still using hexo-generator-index?
Depcheck did not find code similar to require('hexo-generator-index') or import from 'hexo-generator-index'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-generator-index

hexo-generator-searchdb 😕 NOTUSED? Still using hexo-generator-searchdb?
Depcheck did not find code similar to require('hexo-generator-searchdb') or import from 'hexo-generator-searchdb'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-generator-searchdb

hexo-generator-sitemap 😎 MAJOR UP Major update available. https://github.com/hexojs/hexo-generator-sitemap#readme
npm install --save hexo-generator-sitemap@2.1.0 to go from 1.2.0 to 2.1.0
😕 NOTUSED? Still using hexo-generator-sitemap?
Depcheck did not find code similar to require('hexo-generator-sitemap') or import from 'hexo-generator-sitemap'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-generator-sitemap

hexo-generator-tag 😎 MAJOR UP Major update available. http://hexo.io/
npm install --save hexo-generator-tag@1.0.0 to go from 0.2.0 to 1.0.0
😕 NOTUSED? Still using hexo-generator-tag?
Depcheck did not find code similar to require('hexo-generator-tag') or import from 'hexo-generator-tag'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-generator-tag

hexo-helper-live2d 😕 NOTUSED? Still using hexo-helper-live2d?
Depcheck did not find code similar to require('hexo-helper-live2d') or import from 'hexo-helper-live2d'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-helper-live2d

hexo-renderer-ejs 😎 MAJOR UP Major update available. https://github.com/hexojs/hexo-renderer-ejs#readme
npm install --save hexo-renderer-ejs@1.0.0 to go from 0.3.1 to 1.0.0
😕 NOTUSED? Still using hexo-renderer-ejs?
Depcheck did not find code similar to require('hexo-renderer-ejs') or import from 'hexo-renderer-ejs'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-renderer-ejs

hexo-renderer-marked 😎 MAJOR UP Major update available. https://github.com/hexojs/hexo-renderer-marked#readme
npm install --save hexo-renderer-marked@3.3.0 to go from 0.3.2 to 3.3.0
😕 NOTUSED? Still using hexo-renderer-marked?
Depcheck did not find code similar to require('hexo-renderer-marked') or import from 'hexo-renderer-marked'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-renderer-marked

hexo-renderer-stylus 😎 MAJOR UP Major update available. https://github.com/hexojs/hexo-renderer-stylus#readme
npm install --save hexo-renderer-stylus@2.0.1 to go from 0.3.3 to 2.0.1
😕 NOTUSED? Still using hexo-renderer-stylus?
Depcheck did not find code similar to require('hexo-renderer-stylus') or import from 'hexo-renderer-stylus'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-renderer-stylus

hexo-server 😎 MAJOR UP Major update available. http://hexo.io/
npm install --save hexo-server@2.0.0 to go from 0.3.3 to 2.0.0
😕 NOTUSED? Still using hexo-server?
Depcheck did not find code similar to require('hexo-server') or import from 'hexo-server'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-server

hexo-symbols-count-time 😎 NEW VER! NonSemver update available. https://github.com/theme-next/hexo-symbols-count-time#readme
npm install --save hexo-symbols-count-time@0.7.1 to go from 0.4.4 to 0.7.1
😕 NOTUSED? Still using hexo-symbols-count-time?
Depcheck did not find code similar to require('hexo-symbols-count-time') or import from 'hexo-symbols-count-time'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save hexo-symbols-count-time

live2d-widget-model-shizuku 😕 NOTUSED? Still using live2d-widget-model-shizuku?
Depcheck did not find code similar to require('live2d-widget-model-shizuku') or import from 'live2d-widget-model-shizuku'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save live2d-widget-model-shizuku

live2d-widget-model-wanko 😕 NOTUSED? Still using live2d-widget-model-wanko?
Depcheck did not find code similar to require('live2d-widget-model-wanko') or import from 'live2d-widget-model-wanko'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save live2d-widget-model-wanko

Use npm-check -u for interactive update.

好家伙一堆要升级的。。。

安装npm-upgrade

1
npm i npm-upgrade -g

更新package.json(mac全局安装,需在命令前添加sudo
1
npm-upgrade

更新
1
2
3
npm update -g

npm update --save

更新成功
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
INFO  Validating config
WARN Deprecated config detected: "external_link" with a Boolean value is deprecated. See https://hexo.io/docs/configuration for more details.
hexo: 5.3.0
hexo-cli: 4.2.0
os: Darwin 20.2.0 darwin x64
node: 12.20.1
v8: 7.8.279.23-node.45
uv: 1.40.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.16.1
modules: 72
nghttp2: 1.41.0
napi: 7
llhttp: 2.1.3
http_parser: 2.9.4
openssl: 1.1.1i
cldr: 37.0
icu: 67.1
tz: 2019c
unicode: 13.0