1. 程式人生 > >用git bash 生成 hexo 部落格檔案,報錯node: command not found

用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