New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 7: bash: hexo: command not found #1871

Closed
tanchao90 opened this Issue Apr 4, 2016 · 4 comments

Comments

2 participants
@tanchao90

tanchao90 commented Apr 4, 2016

I have installed git , nodejs and hexo according to the docs.

But there are the following message when I run 'hexo init' in bash.

$ hexo init
bash: hexo: command not found

But I can run node hexo in the hexo directory (C:\Users\my_username\AppData\Roaming\npm\node_modules\hexo-cli\bin).

$ node hexo
Usage: hexo
Commands:
help Get help on a command.
init Create a new Hexo folder.

Here is a WARN in the process of installing hexo:

npm WARN optional dep failed, continuing fsevents@1.0.11

How to deal with this problem? Can someone help me?

@Xuanwo

This comment has been minimized.

Show comment
Hide comment
@Xuanwo

Xuanwo Apr 4, 2016

Contributor

Did you install hexo-cli with option -g?

Contributor

Xuanwo commented Apr 4, 2016

Did you install hexo-cli with option -g?

@tanchao90

This comment has been minimized.

Show comment
Hide comment
@tanchao90

tanchao90 Apr 4, 2016

Yes, I executed the command: npm install -g hexo-cli

tanchao90 commented Apr 4, 2016

Yes, I executed the command: npm install -g hexo-cli

@tanchao90

This comment has been minimized.

Show comment
Hide comment
@tanchao90

tanchao90 Apr 4, 2016

I did not successful on my home PC last night.
And I also did not successful on my office PC this afternoon.

But I re executed npm install -g hexo-cli in cmd on my home PC just now.
And then I can use hexo init in cmd.

So What happened? Restart computer?

tanchao90 commented Apr 4, 2016

I did not successful on my home PC last night.
And I also did not successful on my office PC this afternoon.

But I re executed npm install -g hexo-cli in cmd on my home PC just now.
And then I can use hexo init in cmd.

So What happened? Restart computer?

@tanchao90

This comment has been minimized.

Show comment
Hide comment
@tanchao90

tanchao90 Apr 5, 2016

My office PC is ok when I reinstalled Git and nodejs。
So if someone encounter this problem, you can try reinstall Git and nodejs.

tanchao90 commented Apr 5, 2016

My office PC is ok when I reinstalled Git and nodejs。
So if someone encounter this problem, you can try reinstall Git and nodejs.

@tanchao90 tanchao90 closed this Apr 5, 2016

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