用git bash 生成 hexo 博客文件,报错node: command not found

git bash,也安装了node.js, 为什么在bash里面会说node: command not found

电脑有段时间不能上网,下载了360系统急救箱,删了很多文件,包括一些exe文件,可能是被病毒感染了
查看nodejs的安装文件夹,发现node.exe文件也被删除掉了

解决方法:
1、官网,官网下载
下载nodejs

2、配置安装路径到系统环境变量path

猜你喜欢

转载自blog.csdn.net/Aoman_Hao/article/details/82011917