hexo deploy後github有跟新但網頁沒變

先跟新npm

1
2
3
4
>> npm-check
>> npm-upgrade
>> npm update -g
>> npm update --save

輸入

1
>> hexo clean
顯示

1
2
3
4
5
6
7
ERROR require() of ES Module /Users/Blog/node_modules/tildify/index.js 
from /Users/Blog/node_modules/hexo/lib/hexo/index.js not supported.
Instead change the require of /Users/Blog/node_modules/tildify/index.js
in /Users/Blog/node_modules/hexo/lib/hexo/index.js to a dynamic import()
which is available in all CommonJS modules.
ERROR Local hexo loading failed in /Users/Blog
ERROR Try running: 'rm -rf node_modules && npm install --force'

輸入

1
>> rm -rf node_modules && npm install --force
重開機,就可以正常部署了

1
2
>> hexo clean
>> hexo g -d

可以在倉庫的action裡看deploy的進度