当前位置: 代码迷 >> 综合 >> hexo command not found报错问题
  详细解决方案

hexo command not found报错问题

热度:51   发布时间:2023-11-23 06:51:11.0

新建文件夹后用Git Bash Here打开

npm i hexo-cli -g //安装hexo
hexo --v //检查是否安装成功

常遇到bash: hexo: command not found的报错,是因为hexo的版本将服务器独立成了个别模块,需要安装hexo-server才能使用

npm install hexo-server --save
npm i hexo-cli -g //安装hexo
hexo --v //检查是否安装成功

安装完成
在这里插入图片描述

  相关解决方案