hexo icon indicating copy to clipboard operation
hexo copied to clipboard

hexo: command not found

Open NemoAlex opened this issue 13 years ago • 19 comments

OS X 10.7.5 npm install -g hexo 成功后,/usr/local/share/npm/bin 中已经有 hexo 可是 hexo 命令无效

NemoAlex avatar Aug 27 '13 14:08 NemoAlex

Did you install Node.js properly?

tommy351 avatar Aug 27 '13 14:08 tommy351

Sure node -v v0.8.8

NemoAlex avatar Aug 27 '13 14:08 NemoAlex

Did you add . ~/.nvm/nvm.sh in your .bash_profile?

tommy351 avatar Aug 27 '13 14:08 tommy351

No, I don't use nvm. Is that the problem?

NemoAlex avatar Aug 27 '13 14:08 NemoAlex

Maybe you can try to install the latest Node.js with nvm.

tommy351 avatar Aug 27 '13 14:08 tommy351

I tried: /usr/local/share/npm/bin/hexo init blog It works good. Maybe I can link it by myself?

NemoAlex avatar Aug 27 '13 14:08 NemoAlex

I have the same problem and I have add the nvm.sh to my .bash_profile

leezhm avatar Sep 19 '13 08:09 leezhm

I got this issue. It occurs only when you don't install hexo globally and sometimes if you run the bash outside the blog folder

theidlebrain avatar Oct 27 '13 19:10 theidlebrain

This is my .bash_profile

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session as a function

[ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh # This loads NVM

but still command not found

~

phenix502 avatar Dec 22 '13 02:12 phenix502

Maybe you should link hexo

herrdu avatar Oct 18 '14 13:10 herrdu

the same issue,have you got it ?waitting.....

eyea avatar Apr 07 '16 09:04 eyea

Still i am facing the same issue,

jinagamvasubabu avatar Jan 07 '17 07:01 jinagamvasubabu

@jinagamvasubabu npm install -g hexo-cli ,have a try ang tell me the result,THX...

eyea avatar Jan 10 '17 01:01 eyea

Hi @eyeA ,

I am facing this issue while running any hexo commands even though after installing hexo-cli

ERROR Local hexo not found in ~/vasubabu_blog ERROR Try running: 'npm install hexo --save'

Thanks, Vasubabu

jinagamvasubabu avatar Jan 14 '17 03:01 jinagamvasubabu

Hi, I am facing this issue while running any hexo command

ERROR Local hexo not found in /var/www/..... ERROR Try running: 'npm install hexo --save'

OS : ubuntu 16.04.1

Thanks

debashisgithub avatar Jan 23 '17 13:01 debashisgithub

hi , i have shell " npm install -g hexo-cli " , its tips successfuly. and i sm sure that install Node.js . but i hava the same issus , " hexo: command not found " . i hava dismiss something ?

huanjulu avatar Feb 09 '17 01:02 huanjulu

@jinagamvasubabu ,I think you should show us the process of your building your project,such as:hexo init ...and so on....This may let all of us find where is the QUESTION.

eyea avatar Feb 10 '17 04:02 eyea

First you must sure that you installed Node.js(new version),then "npm install -g hexo"

Ycomer avatar Mar 11 '17 12:03 Ycomer

I am on Windows and have the same problem?

johmarjac avatar Oct 06 '18 21:10 johmarjac