rqh656418510 / vuepress-plugin-baidu-seo-next

Baidu SEO plugin for vuepress v2.x
MIT License
0 stars 1 forks source link

npm ERR Cannot read properties of null (reading 'matches') #1

Closed raokun closed 11 months ago

raokun commented 11 months ago

执行命令:npm install -D vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1

npn日志内容:

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@9.5.1
2 info using node@v18.16.0
3 timing npm:load:whichnode Completed in 2ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:F:\个人\TerraMours_Admin_Starter\.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\Administrator\.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\Administrator\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 8ms
17 timing npm:load:configload Completed in 8ms
18 timing npm:load:mkdirpcache Completed in 1ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm install vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1
21 verbose argv "install" "--save-dev" "vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 2ms
24 timing npm:load:display Completed in 3ms
25 verbose logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-10-19T02_55_31_264Z-
26 verbose logfile C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-10-19T02_55_31_264Z-debug-0.log
27 timing npm:load:logFile Completed in 4ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 20ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile start cleaning logs, removing 2 files
33 timing arborist:ctor Completed in 1ms
34 silly logfile done cleaning log files
35 timing idealTree:init Completed in 667ms
36 timing idealTree:userRequests Completed in 2ms
37 silly idealTree buildDeps
38 silly fetch manifest vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1
39 http fetch GET 200 https://registry.npmmirror.com/vuepress-plugin-baidu-seo-next 162ms (cache hit)
40 silly placeDep ROOT vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 OK for: TerraMours-Starter@1.0.0 want: 2.0.0-beta.66.1
41 silly fetch manifest @vuepress/core@2.0.0-beta.66
42 silly fetch manifest @vuepress/client@2.0.0-beta.66
43 silly fetch manifest @vuepress/utils@2.0.0-beta.66
44 silly fetch manifest vue-router@^4.1.6
45 silly fetch manifest chalk@^4.1.2
46 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fcore 44ms (cache hit)
47 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fclient 104ms (cache hit)
48 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2futils 113ms (cache hit)
49 http fetch GET 200 https://registry.npmmirror.com/chalk 113ms (cache hit)
50 http fetch GET 200 https://registry.npmmirror.com/vue-router 117ms (cache hit)
51 timing idealTree:#root Completed in 293ms
52 silly fetch manifest vue@^3.2.47
53 http fetch GET 200 https://registry.npmmirror.com/vue 38ms (cache hit)
54 silly placeDep node_modules/vuepress-plugin-baidu-seo-next @vuepress/client@2.0.0-beta.66 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: 2.0.0-beta.66
55 silly placeDep ROOT @vuepress/core@2.0.0-beta.66 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: 2.0.0-beta.66
56 silly placeDep ROOT @vuepress/utils@2.0.0-beta.66 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: 2.0.0-beta.66
57 silly placeDep ROOT chalk@4.1.2 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: ^4.1.2
58 silly placeDep ROOT vue-router@4.2.5 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: ^4.1.6
59 silly fetch manifest @vue/devtools-api@^6.5.0
60 silly fetch manifest @vueuse/core@^10.2.1
61 silly fetch manifest @vuepress/shared@2.0.0-beta.66
62 silly fetch manifest @vuepress/markdown@2.0.0-beta.66
63 silly fetch manifest @types/debug@^4.1.8
64 silly fetch manifest @types/fs-extra@^11.0.1
65 silly fetch manifest @types/hash-sum@^1.0.0
66 silly fetch manifest debug@^4.3.4
67 silly fetch manifest fs-extra@^11.1.1
68 silly fetch manifest globby@^13.2.2
69 silly fetch manifest hash-sum@^2.0.0
70 silly fetch manifest ora@^6.3.1
71 silly fetch manifest picocolors@^1.0.0
72 silly fetch manifest upath@^2.0.1
73 silly fetch manifest ansi-styles@^4.1.0
74 silly fetch manifest supports-color@^7.1.0
75 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fshared 76ms (cache hit)
76 http fetch GET 200 https://registry.npmmirror.com/@vueuse%2fcore 82ms (cache hit)
77 http fetch GET 200 https://registry.npmmirror.com/@types%2fhash-sum 83ms (cache hit)
78 http fetch GET 200 https://registry.npmmirror.com/@types%2fdebug 84ms (cache hit)
79 http fetch GET 200 https://registry.npmmirror.com/@vue%2fdevtools-api 87ms (cache hit)
80 http fetch GET 200 https://registry.npmmirror.com/supports-color 97ms (cache hit)
81 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fmarkdown 138ms (cache hit)
82 http fetch GET 200 https://registry.npmmirror.com/fs-extra 137ms (cache hit)
83 http fetch GET 200 https://registry.npmmirror.com/debug 143ms (cache hit)
84 http fetch GET 200 https://registry.npmmirror.com/ora 141ms (cache hit)
85 http fetch GET 200 https://registry.npmmirror.com/upath 149ms (cache hit)
86 http fetch GET 200 https://registry.npmmirror.com/picocolors 153ms (cache hit)
87 http fetch GET 200 https://registry.npmmirror.com/ansi-styles 152ms (cache hit)
88 http fetch GET 200 https://registry.npmmirror.com/@types%2ffs-extra 157ms (cache hit)
89 http fetch GET 200 https://registry.npmmirror.com/hash-sum 157ms (cache hit)
90 http fetch GET 200 https://registry.npmmirror.com/globby 158ms (cache hit)
91 timing idealTree:node_modules/vuepress-plugin-baidu-seo-next Completed in 223ms
92 silly placeDep node_modules/@vuepress/core @vuepress/client@2.0.0-beta.66 OK for: @vuepress/core@2.0.0-beta.66 want: 2.0.0-beta.66
93 silly placeDep ROOT @vuepress/markdown@2.0.0-beta.66 OK for: @vuepress/core@2.0.0-beta.66 want: 2.0.0-beta.66
94 silly placeDep ROOT @vuepress/shared@2.0.0-beta.66 OK for: @vuepress/core@2.0.0-beta.66 want: 2.0.0-beta.66
95 silly fetch manifest @mdit-vue/plugin-component@^0.12.0
96 silly fetch manifest @mdit-vue/plugin-frontmatter@^0.12.0
97 silly fetch manifest @mdit-vue/plugin-headers@^0.12.0
98 silly fetch manifest @mdit-vue/plugin-sfc@^0.12.0
99 silly fetch manifest @mdit-vue/plugin-title@^0.12.0
100 silly fetch manifest @mdit-vue/plugin-toc@^0.12.0
101 silly fetch manifest @mdit-vue/shared@^0.12.0
102 silly fetch manifest @mdit-vue/types@^0.12.0
103 silly fetch manifest @types/markdown-it@^12.2.3
104 silly fetch manifest @types/markdown-it-emoji@^2.0.2
105 silly fetch manifest markdown-it@^13.0.1
106 silly fetch manifest markdown-it-anchor@^8.6.7
107 silly fetch manifest markdown-it-emoji@^2.0.2
108 silly fetch manifest mdurl@^1.0.1
109 silly fetch manifest @vue/shared@^3.3.4
110 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-component 56ms (cache hit)
111 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-sfc 74ms (cache hit)
112 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-toc 76ms (cache hit)
113 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fshared 77ms (cache hit)
114 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-frontmatter 80ms (cache hit)
115 http fetch GET 200 https://registry.npmmirror.com/@types%2fmarkdown-it-emoji 78ms (cache hit)
116 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-title 82ms (cache hit)
117 http fetch GET 200 https://registry.npmmirror.com/@types%2fmarkdown-it 80ms (cache hit)
118 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-headers 85ms (cache hit)
119 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2ftypes 87ms (cache hit)
120 http fetch GET 200 https://registry.npmmirror.com/markdown-it-emoji 84ms (cache hit)
121 http fetch GET 200 https://registry.npmmirror.com/markdown-it-anchor 86ms (cache hit)
122 http fetch GET 200 https://registry.npmmirror.com/mdurl 86ms (cache hit)
123 http fetch GET 200 https://registry.npmmirror.com/@vue%2fshared 85ms (cache hit)
124 http fetch GET 200 https://registry.npmmirror.com/markdown-it 88ms (cache hit)
125 timing idealTree:node_modules/@vuepress/core Completed in 102ms
126 silly placeDep ROOT @mdit-vue/plugin-component@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
127 silly placeDep ROOT @mdit-vue/plugin-frontmatter@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
128 silly placeDep ROOT @mdit-vue/plugin-headers@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
129 silly placeDep ROOT @mdit-vue/plugin-sfc@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
130 silly placeDep ROOT @mdit-vue/plugin-title@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
131 silly placeDep ROOT @mdit-vue/plugin-toc@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
132 silly placeDep ROOT @mdit-vue/shared@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
133 silly placeDep ROOT @mdit-vue/types@0.12.0 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
134 silly placeDep ROOT @types/markdown-it@12.2.3 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^12.2.3
135 silly placeDep ROOT @types/markdown-it-emoji@2.0.3 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^2.0.2
136 silly placeDep ROOT markdown-it@13.0.2 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^13.0.1
137 timing idealTree Completed in 1308ms
138 timing command:install Completed in 1314ms
139 verbose stack TypeError: Cannot read properties of null (reading 'matches')
139 verbose stack     at Link.matches (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1119:41)
139 verbose stack     at Link.canDedupe (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1073:15)
139 verbose stack     at PlaceDep.pruneDedupable (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:426:14)
139 verbose stack     at new PlaceDep (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:278:14)
139 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:943:31
139 verbose stack     at Array.map (<anonymous>)
139 verbose stack     at [buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:943:8)
139 verbose stack     at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:207:7)
139 verbose stack     at async Promise.all (index 1)
139 verbose stack     at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:159:5)
140 verbose cwd F:\个人\TerraMours_Admin_Starter\docs
141 verbose Windows_NT 10.0.19045
142 verbose node v18.16.0
143 verbose npm  v9.5.1
144 error Cannot read properties of null (reading 'matches')
145 verbose exit 1
146 timing npm Completed in 1354ms
147 verbose unfinished npm timer reify 1697684131303
148 verbose unfinished npm timer reify:loadTrees 1697684131305
149 verbose unfinished npm timer idealTree:buildDeps 1697684131975
150 verbose unfinished npm timer idealTree:node_modules/@vuepress/markdown 1697684132594
151 verbose code 1
152 error A complete log of this run can be found in:
152 error     C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-10-19T02_55_31_264Z-debug-0.log
rqh656418510 commented 11 months ago

执行命令:npm install -D vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1

  • 对应vuepress版本:2.0.0-beta.62
  • 报错内容: Cannot read properties of null (reading 'matches')

npn日志内容:

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@9.5.1
2 info using node@v18.16.0
3 timing npm:load:whichnode Completed in 2ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:F:\个人\TerraMours_Admin_Starter\.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\Administrator\.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\Administrator\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 8ms
17 timing npm:load:configload Completed in 8ms
18 timing npm:load:mkdirpcache Completed in 1ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm install vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1
21 verbose argv "install" "--save-dev" "vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 2ms
24 timing npm:load:display Completed in 3ms
25 verbose logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-10-19T02_55_31_264Z-
26 verbose logfile C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-10-19T02_55_31_264Z-debug-0.log
27 timing npm:load:logFile Completed in 4ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 20ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile start cleaning logs, removing 2 files
33 timing arborist:ctor Completed in 1ms
34 silly logfile done cleaning log files
35 timing idealTree:init Completed in 667ms
36 timing idealTree:userRequests Completed in 2ms
37 silly idealTree buildDeps
38 silly fetch manifest vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1
39 http fetch GET 200 https://registry.npmmirror.com/vuepress-plugin-baidu-seo-next 162ms (cache hit)
40 silly placeDep ROOT vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 OK for: TerraMours-Starter@1.0.0 want: 2.0.0-beta.66.1
41 silly fetch manifest @vuepress/core@2.0.0-beta.66
42 silly fetch manifest @vuepress/client@2.0.0-beta.66
43 silly fetch manifest @vuepress/utils@2.0.0-beta.66
44 silly fetch manifest vue-router@^4.1.6
45 silly fetch manifest chalk@^4.1.2
46 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fcore 44ms (cache hit)
47 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fclient 104ms (cache hit)
48 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2futils 113ms (cache hit)
49 http fetch GET 200 https://registry.npmmirror.com/chalk 113ms (cache hit)
50 http fetch GET 200 https://registry.npmmirror.com/vue-router 117ms (cache hit)
51 timing idealTree:#root Completed in 293ms
52 silly fetch manifest vue@^3.2.47
53 http fetch GET 200 https://registry.npmmirror.com/vue 38ms (cache hit)
54 silly placeDep node_modules/vuepress-plugin-baidu-seo-next @vuepress/client@2.0.0-beta.66 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: 2.0.0-beta.66
55 silly placeDep ROOT @vuepress/core@2.0.0-beta.66 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: 2.0.0-beta.66
56 silly placeDep ROOT @vuepress/utils@2.0.0-beta.66 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: 2.0.0-beta.66
57 silly placeDep ROOT chalk@4.1.2 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: ^4.1.2
58 silly placeDep ROOT vue-router@4.2.5 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: ^4.1.6
59 silly fetch manifest @vue/devtools-api@^6.5.0
60 silly fetch manifest @vueuse/core@^10.2.1
61 silly fetch manifest @vuepress/shared@2.0.0-beta.66
62 silly fetch manifest @vuepress/markdown@2.0.0-beta.66
63 silly fetch manifest @types/debug@^4.1.8
64 silly fetch manifest @types/fs-extra@^11.0.1
65 silly fetch manifest @types/hash-sum@^1.0.0
66 silly fetch manifest debug@^4.3.4
67 silly fetch manifest fs-extra@^11.1.1
68 silly fetch manifest globby@^13.2.2
69 silly fetch manifest hash-sum@^2.0.0
70 silly fetch manifest ora@^6.3.1
71 silly fetch manifest picocolors@^1.0.0
72 silly fetch manifest upath@^2.0.1
73 silly fetch manifest ansi-styles@^4.1.0
74 silly fetch manifest supports-color@^7.1.0
75 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fshared 76ms (cache hit)
76 http fetch GET 200 https://registry.npmmirror.com/@vueuse%2fcore 82ms (cache hit)
77 http fetch GET 200 https://registry.npmmirror.com/@types%2fhash-sum 83ms (cache hit)
78 http fetch GET 200 https://registry.npmmirror.com/@types%2fdebug 84ms (cache hit)
79 http fetch GET 200 https://registry.npmmirror.com/@vue%2fdevtools-api 87ms (cache hit)
80 http fetch GET 200 https://registry.npmmirror.com/supports-color 97ms (cache hit)
81 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fmarkdown 138ms (cache hit)
82 http fetch GET 200 https://registry.npmmirror.com/fs-extra 137ms (cache hit)
83 http fetch GET 200 https://registry.npmmirror.com/debug 143ms (cache hit)
84 http fetch GET 200 https://registry.npmmirror.com/ora 141ms (cache hit)
85 http fetch GET 200 https://registry.npmmirror.com/upath 149ms (cache hit)
86 http fetch GET 200 https://registry.npmmirror.com/picocolors 153ms (cache hit)
87 http fetch GET 200 https://registry.npmmirror.com/ansi-styles 152ms (cache hit)
88 http fetch GET 200 https://registry.npmmirror.com/@types%2ffs-extra 157ms (cache hit)
89 http fetch GET 200 https://registry.npmmirror.com/hash-sum 157ms (cache hit)
90 http fetch GET 200 https://registry.npmmirror.com/globby 158ms (cache hit)
91 timing idealTree:node_modules/vuepress-plugin-baidu-seo-next Completed in 223ms
92 silly placeDep node_modules/@vuepress/core @vuepress/client@2.0.0-beta.66 OK for: @vuepress/core@2.0.0-beta.66 want: 2.0.0-beta.66
93 silly placeDep ROOT @vuepress/markdown@2.0.0-beta.66 OK for: @vuepress/core@2.0.0-beta.66 want: 2.0.0-beta.66
94 silly placeDep ROOT @vuepress/shared@2.0.0-beta.66 OK for: @vuepress/core@2.0.0-beta.66 want: 2.0.0-beta.66
95 silly fetch manifest @mdit-vue/plugin-component@^0.12.0
96 silly fetch manifest @mdit-vue/plugin-frontmatter@^0.12.0
97 silly fetch manifest @mdit-vue/plugin-headers@^0.12.0
98 silly fetch manifest @mdit-vue/plugin-sfc@^0.12.0
99 silly fetch manifest @mdit-vue/plugin-title@^0.12.0
100 silly fetch manifest @mdit-vue/plugin-toc@^0.12.0
101 silly fetch manifest @mdit-vue/shared@^0.12.0
102 silly fetch manifest @mdit-vue/types@^0.12.0
103 silly fetch manifest @types/markdown-it@^12.2.3
104 silly fetch manifest @types/markdown-it-emoji@^2.0.2
105 silly fetch manifest markdown-it@^13.0.1
106 silly fetch manifest markdown-it-anchor@^8.6.7
107 silly fetch manifest markdown-it-emoji@^2.0.2
108 silly fetch manifest mdurl@^1.0.1
109 silly fetch manifest @vue/shared@^3.3.4
110 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-component 56ms (cache hit)
111 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-sfc 74ms (cache hit)
112 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-toc 76ms (cache hit)
113 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fshared 77ms (cache hit)
114 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-frontmatter 80ms (cache hit)
115 http fetch GET 200 https://registry.npmmirror.com/@types%2fmarkdown-it-emoji 78ms (cache hit)
116 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-title 82ms (cache hit)
117 http fetch GET 200 https://registry.npmmirror.com/@types%2fmarkdown-it 80ms (cache hit)
118 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-headers 85ms (cache hit)
119 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2ftypes 87ms (cache hit)
120 http fetch GET 200 https://registry.npmmirror.com/markdown-it-emoji 84ms (cache hit)
121 http fetch GET 200 https://registry.npmmirror.com/markdown-it-anchor 86ms (cache hit)
122 http fetch GET 200 https://registry.npmmirror.com/mdurl 86ms (cache hit)
123 http fetch GET 200 https://registry.npmmirror.com/@vue%2fshared 85ms (cache hit)
124 http fetch GET 200 https://registry.npmmirror.com/markdown-it 88ms (cache hit)
125 timing idealTree:node_modules/@vuepress/core Completed in 102ms
126 silly placeDep ROOT @mdit-vue/plugin-component@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
127 silly placeDep ROOT @mdit-vue/plugin-frontmatter@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
128 silly placeDep ROOT @mdit-vue/plugin-headers@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
129 silly placeDep ROOT @mdit-vue/plugin-sfc@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
130 silly placeDep ROOT @mdit-vue/plugin-title@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
131 silly placeDep ROOT @mdit-vue/plugin-toc@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
132 silly placeDep ROOT @mdit-vue/shared@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
133 silly placeDep ROOT @mdit-vue/types@0.12.0 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
134 silly placeDep ROOT @types/markdown-it@12.2.3 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^12.2.3
135 silly placeDep ROOT @types/markdown-it-emoji@2.0.3 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^2.0.2
136 silly placeDep ROOT markdown-it@13.0.2 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^13.0.1
137 timing idealTree Completed in 1308ms
138 timing command:install Completed in 1314ms
139 verbose stack TypeError: Cannot read properties of null (reading 'matches')
139 verbose stack     at Link.matches (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1119:41)
139 verbose stack     at Link.canDedupe (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1073:15)
139 verbose stack     at PlaceDep.pruneDedupable (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:426:14)
139 verbose stack     at new PlaceDep (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:278:14)
139 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:943:31
139 verbose stack     at Array.map (<anonymous>)
139 verbose stack     at [buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:943:8)
139 verbose stack     at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:207:7)
139 verbose stack     at async Promise.all (index 1)
139 verbose stack     at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:159:5)
140 verbose cwd F:\个人\TerraMours_Admin_Starter\docs
141 verbose Windows_NT 10.0.19045
142 verbose node v18.16.0
143 verbose npm  v9.5.1
144 error Cannot read properties of null (reading 'matches')
145 verbose exit 1
146 timing npm Completed in 1354ms
147 verbose unfinished npm timer reify 1697684131303
148 verbose unfinished npm timer reify:loadTrees 1697684131305
149 verbose unfinished npm timer idealTree:buildDeps 1697684131975
150 verbose unfinished npm timer idealTree:node_modules/@vuepress/markdown 1697684132594
151 verbose code 1
152 error A complete log of this run can be found in:
152 error     C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-10-19T02_55_31_264Z-debug-0.log

SEO 插件版本不兼容导致的,你的 VuePress 版本是 2.0.0-beta.62,那么 SEO 插件的版本应该是 2.0.0-beta.62.1。安装命令如下:

npm install -D vuepress-plugin-baidu-seo-next@2.0.0-beta.62.1
raokun commented 11 months ago

执行命令:npm install -D vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1

  • 对应vuepress版本:2.0.0-beta.62
  • 报错内容: Cannot read properties of null (reading 'matches')

npn日志内容:

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@9.5.1
2 info using node@v18.16.0
3 timing npm:load:whichnode Completed in 2ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:F:\个人\TerraMours_Admin_Starter\.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\Administrator\.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\Administrator\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 8ms
17 timing npm:load:configload Completed in 8ms
18 timing npm:load:mkdirpcache Completed in 1ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm install vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1
21 verbose argv "install" "--save-dev" "vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 2ms
24 timing npm:load:display Completed in 3ms
25 verbose logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-10-19T02_55_31_264Z-
26 verbose logfile C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-10-19T02_55_31_264Z-debug-0.log
27 timing npm:load:logFile Completed in 4ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 20ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile start cleaning logs, removing 2 files
33 timing arborist:ctor Completed in 1ms
34 silly logfile done cleaning log files
35 timing idealTree:init Completed in 667ms
36 timing idealTree:userRequests Completed in 2ms
37 silly idealTree buildDeps
38 silly fetch manifest vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1
39 http fetch GET 200 https://registry.npmmirror.com/vuepress-plugin-baidu-seo-next 162ms (cache hit)
40 silly placeDep ROOT vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 OK for: TerraMours-Starter@1.0.0 want: 2.0.0-beta.66.1
41 silly fetch manifest @vuepress/core@2.0.0-beta.66
42 silly fetch manifest @vuepress/client@2.0.0-beta.66
43 silly fetch manifest @vuepress/utils@2.0.0-beta.66
44 silly fetch manifest vue-router@^4.1.6
45 silly fetch manifest chalk@^4.1.2
46 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fcore 44ms (cache hit)
47 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fclient 104ms (cache hit)
48 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2futils 113ms (cache hit)
49 http fetch GET 200 https://registry.npmmirror.com/chalk 113ms (cache hit)
50 http fetch GET 200 https://registry.npmmirror.com/vue-router 117ms (cache hit)
51 timing idealTree:#root Completed in 293ms
52 silly fetch manifest vue@^3.2.47
53 http fetch GET 200 https://registry.npmmirror.com/vue 38ms (cache hit)
54 silly placeDep node_modules/vuepress-plugin-baidu-seo-next @vuepress/client@2.0.0-beta.66 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: 2.0.0-beta.66
55 silly placeDep ROOT @vuepress/core@2.0.0-beta.66 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: 2.0.0-beta.66
56 silly placeDep ROOT @vuepress/utils@2.0.0-beta.66 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: 2.0.0-beta.66
57 silly placeDep ROOT chalk@4.1.2 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: ^4.1.2
58 silly placeDep ROOT vue-router@4.2.5 OK for: vuepress-plugin-baidu-seo-next@2.0.0-beta.66.1 want: ^4.1.6
59 silly fetch manifest @vue/devtools-api@^6.5.0
60 silly fetch manifest @vueuse/core@^10.2.1
61 silly fetch manifest @vuepress/shared@2.0.0-beta.66
62 silly fetch manifest @vuepress/markdown@2.0.0-beta.66
63 silly fetch manifest @types/debug@^4.1.8
64 silly fetch manifest @types/fs-extra@^11.0.1
65 silly fetch manifest @types/hash-sum@^1.0.0
66 silly fetch manifest debug@^4.3.4
67 silly fetch manifest fs-extra@^11.1.1
68 silly fetch manifest globby@^13.2.2
69 silly fetch manifest hash-sum@^2.0.0
70 silly fetch manifest ora@^6.3.1
71 silly fetch manifest picocolors@^1.0.0
72 silly fetch manifest upath@^2.0.1
73 silly fetch manifest ansi-styles@^4.1.0
74 silly fetch manifest supports-color@^7.1.0
75 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fshared 76ms (cache hit)
76 http fetch GET 200 https://registry.npmmirror.com/@vueuse%2fcore 82ms (cache hit)
77 http fetch GET 200 https://registry.npmmirror.com/@types%2fhash-sum 83ms (cache hit)
78 http fetch GET 200 https://registry.npmmirror.com/@types%2fdebug 84ms (cache hit)
79 http fetch GET 200 https://registry.npmmirror.com/@vue%2fdevtools-api 87ms (cache hit)
80 http fetch GET 200 https://registry.npmmirror.com/supports-color 97ms (cache hit)
81 http fetch GET 200 https://registry.npmmirror.com/@vuepress%2fmarkdown 138ms (cache hit)
82 http fetch GET 200 https://registry.npmmirror.com/fs-extra 137ms (cache hit)
83 http fetch GET 200 https://registry.npmmirror.com/debug 143ms (cache hit)
84 http fetch GET 200 https://registry.npmmirror.com/ora 141ms (cache hit)
85 http fetch GET 200 https://registry.npmmirror.com/upath 149ms (cache hit)
86 http fetch GET 200 https://registry.npmmirror.com/picocolors 153ms (cache hit)
87 http fetch GET 200 https://registry.npmmirror.com/ansi-styles 152ms (cache hit)
88 http fetch GET 200 https://registry.npmmirror.com/@types%2ffs-extra 157ms (cache hit)
89 http fetch GET 200 https://registry.npmmirror.com/hash-sum 157ms (cache hit)
90 http fetch GET 200 https://registry.npmmirror.com/globby 158ms (cache hit)
91 timing idealTree:node_modules/vuepress-plugin-baidu-seo-next Completed in 223ms
92 silly placeDep node_modules/@vuepress/core @vuepress/client@2.0.0-beta.66 OK for: @vuepress/core@2.0.0-beta.66 want: 2.0.0-beta.66
93 silly placeDep ROOT @vuepress/markdown@2.0.0-beta.66 OK for: @vuepress/core@2.0.0-beta.66 want: 2.0.0-beta.66
94 silly placeDep ROOT @vuepress/shared@2.0.0-beta.66 OK for: @vuepress/core@2.0.0-beta.66 want: 2.0.0-beta.66
95 silly fetch manifest @mdit-vue/plugin-component@^0.12.0
96 silly fetch manifest @mdit-vue/plugin-frontmatter@^0.12.0
97 silly fetch manifest @mdit-vue/plugin-headers@^0.12.0
98 silly fetch manifest @mdit-vue/plugin-sfc@^0.12.0
99 silly fetch manifest @mdit-vue/plugin-title@^0.12.0
100 silly fetch manifest @mdit-vue/plugin-toc@^0.12.0
101 silly fetch manifest @mdit-vue/shared@^0.12.0
102 silly fetch manifest @mdit-vue/types@^0.12.0
103 silly fetch manifest @types/markdown-it@^12.2.3
104 silly fetch manifest @types/markdown-it-emoji@^2.0.2
105 silly fetch manifest markdown-it@^13.0.1
106 silly fetch manifest markdown-it-anchor@^8.6.7
107 silly fetch manifest markdown-it-emoji@^2.0.2
108 silly fetch manifest mdurl@^1.0.1
109 silly fetch manifest @vue/shared@^3.3.4
110 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-component 56ms (cache hit)
111 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-sfc 74ms (cache hit)
112 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-toc 76ms (cache hit)
113 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fshared 77ms (cache hit)
114 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-frontmatter 80ms (cache hit)
115 http fetch GET 200 https://registry.npmmirror.com/@types%2fmarkdown-it-emoji 78ms (cache hit)
116 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-title 82ms (cache hit)
117 http fetch GET 200 https://registry.npmmirror.com/@types%2fmarkdown-it 80ms (cache hit)
118 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2fplugin-headers 85ms (cache hit)
119 http fetch GET 200 https://registry.npmmirror.com/@mdit-vue%2ftypes 87ms (cache hit)
120 http fetch GET 200 https://registry.npmmirror.com/markdown-it-emoji 84ms (cache hit)
121 http fetch GET 200 https://registry.npmmirror.com/markdown-it-anchor 86ms (cache hit)
122 http fetch GET 200 https://registry.npmmirror.com/mdurl 86ms (cache hit)
123 http fetch GET 200 https://registry.npmmirror.com/@vue%2fshared 85ms (cache hit)
124 http fetch GET 200 https://registry.npmmirror.com/markdown-it 88ms (cache hit)
125 timing idealTree:node_modules/@vuepress/core Completed in 102ms
126 silly placeDep ROOT @mdit-vue/plugin-component@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
127 silly placeDep ROOT @mdit-vue/plugin-frontmatter@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
128 silly placeDep ROOT @mdit-vue/plugin-headers@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
129 silly placeDep ROOT @mdit-vue/plugin-sfc@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
130 silly placeDep ROOT @mdit-vue/plugin-title@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
131 silly placeDep ROOT @mdit-vue/plugin-toc@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
132 silly placeDep ROOT @mdit-vue/shared@0.12.1 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
133 silly placeDep ROOT @mdit-vue/types@0.12.0 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^0.12.0
134 silly placeDep ROOT @types/markdown-it@12.2.3 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^12.2.3
135 silly placeDep ROOT @types/markdown-it-emoji@2.0.3 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^2.0.2
136 silly placeDep ROOT markdown-it@13.0.2 OK for: @vuepress/markdown@2.0.0-beta.66 want: ^13.0.1
137 timing idealTree Completed in 1308ms
138 timing command:install Completed in 1314ms
139 verbose stack TypeError: Cannot read properties of null (reading 'matches')
139 verbose stack     at Link.matches (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1119:41)
139 verbose stack     at Link.canDedupe (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1073:15)
139 verbose stack     at PlaceDep.pruneDedupable (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:426:14)
139 verbose stack     at new PlaceDep (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:278:14)
139 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:943:31
139 verbose stack     at Array.map (<anonymous>)
139 verbose stack     at [buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:943:8)
139 verbose stack     at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:207:7)
139 verbose stack     at async Promise.all (index 1)
139 verbose stack     at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:159:5)
140 verbose cwd F:\个人\TerraMours_Admin_Starter\docs
141 verbose Windows_NT 10.0.19045
142 verbose node v18.16.0
143 verbose npm  v9.5.1
144 error Cannot read properties of null (reading 'matches')
145 verbose exit 1
146 timing npm Completed in 1354ms
147 verbose unfinished npm timer reify 1697684131303
148 verbose unfinished npm timer reify:loadTrees 1697684131305
149 verbose unfinished npm timer idealTree:buildDeps 1697684131975
150 verbose unfinished npm timer idealTree:node_modules/@vuepress/markdown 1697684132594
151 verbose code 1
152 error A complete log of this run can be found in:
152 error     C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-10-19T02_55_31_264Z-debug-0.log

SEO 插件版本不兼容导致的,你的 VuePress 版本是 2.0.0-beta.62,那么 SEO 插件的版本应该是 2.0.0-beta.62.1。安装命令如下:

npm install -D vuepress-plugin-baidu-seo-next@2.0.0-beta.62.1

执行
npm install -D vuepress-plugin-baidu-seo-next@2.0.0-beta.62.1

结果也是npm ERR! Cannot read properties of null (reading 'matches') log的内容也是一样

rqh656418510 commented 11 months ago
  1. 旧版本的 SEO 插件最好是先卸载掉,然后再重新安装新版本的。
  2. 如果还是报错,检查一下是不是不安装 SEO 插件的时候,VuePress 就可以正常运行。 @raokun