解决"bash: hexo: command not found"问题

时间:2024-03-23 18:44:31

问题描述

执行完npm install -g hexo,在git bash 下执行hexo -v 显示命令找不到
解决"bash: hexo: command not found"问题

解决方案

(1)找到hexo安装目录下的.bin,复制此路径

解决"bash: hexo: command not found"问题

(2)配置环境变量

右击此电脑,选择属性,点击高级环境配置
解决"bash: hexo: command not found"问题
点击环境变量,双击系统变量下的path
解决"bash: hexo: command not found"问题
将复制的路径添加进path,依次点击确定

(3)问题解决

解决"bash: hexo: command not found"问题