hexo: command not found

Created on 27 Aug 2013  ·  19Comments  ·  Source: hexojs/hexo

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

question

All 19 comments

Did you install Node.js properly?

Sure
node -v
v0.8.8

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

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

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

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

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

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

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

~

Maybe you should link hexo

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

Still i am facing the same issue,

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

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

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

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 ?

@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.

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

I am on Windows and have the same problem?

Was this page helpful?
0 / 5 - 0 ratings