hexo g #生成静态页面 hexo s #启动本地服务器 预览 hexo d #将生成的博客文件部署到 github main分支,Hexo博客项目配置文件中_config.yml已设置好
6.遇到的问题
问题1.nodejs版本过低
npm WARN notsup Unsupported engine for hexo@6.3.0: wanted: {“node”:”>=12.13.0”} (current: {“node”:”10.19.0”,”npm”:”6.14.4”}) npm WARN notsup Not compatible with your version of node/npm: hexo@6.3.0 npm WARN notsup Unsupported engine for hexo-front-matter@3.0.0: wanted: {“node”:”>=12.13.0”} (current: {“node”:”10.19.0”,”npm”:”6.14.4”}) npm WARN notsup Not compatible with your version of node/npm: hexo-front-matter@3.0.0 npm WARN notsup Unsupported engine for hexo-cli@4.3.1: wanted: {“node”:”>=14”} (current: {“node”:”10.19.0”,”npm”:”6.14.4”}) npm WARN notsup Not compatible with your version of node/npm: hexo-cli@4.3.1 npm WARN notsup Unsupported engine for hexo-log@3.2.0: wanted: {“node”:”>=12.4.0”} (current: {“node”:”10.19.0”,”npm”:”6.14.4”}) npm WARN notsup Not compatible with your version of node/npm: hexo-log@3.2.0 npm WARN notsup Unsupported engine for abbrev@2.0.0: wanted: {“node”:”^14.17.0 || ^16.13.0 || >=18.0.0”} (current: {“node”:”10.19.0”,”npm”:”6.14.4”}) npm WARN notsup Not compatible with your version of node/npm: abbrev@2.0.0 npm WARN notsup Unsupported engine for hexo-fs@4.1.1: wanted: {“node”:”>=14”} (current: {“node”:”10.19.0”,”npm”:”6.14.4”}) npm WARN notsup Not compatible with your version of node/npm: hexo-fs@4.1.1 npm WARN notsup Unsupported engine for hexo-log@4.1.0: wanted: {“node”:”>=14”} (current: {“node”:”10.19.0”,”npm”:”6.14.4”}) npm WARN notsup Not compatible with your version of node/npm: hexo-log@4.1.0 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.3 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {“os”:”darwin”,”arch”:”any”} (current: {“os”:”linux”,”arch”:”x64”})