I haven't updated hexo since july, 2016.
Today when I want to update blog, I found git doesn't recognize hexo command.
So I was trying to re-install hexo.
But got errores below:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0
And I have used MSI to install Node.js, nothing change better.
Does anyone can give some ideas?
What do you mean "git doesn't recogize Hexo command"? Which Hexo command you used?
The warning is okay, you could just ignore it.
Hexo g or hexo generate
hexo g is generating the site files, which doesn't call git command. However, if you set deployer using git, then hexo d will use git command to deploy the site.
yes, I know. To deploy, we should hexo g and hexo d then. If we see ""git doesn't recognize hexo command", I can not do any hexo action to deply my websites. Originally hexo worked to deploy my websites, but I don't know why it doesn't right now. Perhaps I wrongly delete something? How can I recover? I thought only I can do is to run "npm install hexo-cli -g" again, but this command doesn't work as well and show that warning above. That's why I come to ask help. Because I have modified config (Changing Theme, adding posts), I want to know how can I re-install with no impacting about my current post or config setting about my website? Thank you
Screenshoe has been updated, anyone know what's wrong?
Have you run npm install or hexo init?