npm install error #2342

Open
yyz20002008 opened this Issue Jan 3, 2017 · 6 comments

Projects

None yet

2 participants

@yyz20002008
yyz20002008 commented Jan 3, 2017 edited

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

error-1

And I have used MSI to install Node.js, nothing change better.

Does anyone can give some ideas?

@NoahDragon
Member

What do you mean "git doesn't recogize Hexo command"? Which Hexo command you used?

The warning is okay, you could just ignore it.

@yyz20002008
yyz20002008 commented Jan 3, 2017 edited

Hexo g or hexo generate

@NoahDragon
Member

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.

@yyz20002008
yyz20002008 commented Jan 4, 2017 edited

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

@yyz20002008

Screenshoe has been updated, anyone know what's wrong?

@NoahDragon
Member

Have you run npm install or hexo init?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment