Skip to content
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

command not found: hexo #206

Closed
wind4869 opened this issue Jun 14, 2013 · 9 comments
Closed

command not found: hexo #206

wind4869 opened this issue Jun 14, 2013 · 9 comments

Comments

@wind4869
Copy link

今天更新了一下nvm,之后又更新了hexo,结果再使用hexo的时候出现:command not found: hexo的提示,可能是什么原因导致的呢?我用的操作系统是linux-mint14。

@wind4869
Copy link
Author

通过删掉.npm文件夹,重新安装hexo后问题修复。

@herrdu
Copy link

herrdu commented Oct 18, 2014

你在哪里删除的.npm 文件夹?

@wind4869
Copy link
Author

@duyutaochn linux的home目录下,即~/.npm

@herrdu
Copy link

herrdu commented Oct 21, 2014

没有删这个文件夹我也解决了,用n控制了node的版本号,sudo npm install g hexo,就好了。

@Edenharder
Copy link

每次重启终端都有这个错误,nvm是v0.10.33的。咋回事儿呢?重装hexo后还是这样。

@licong
Copy link

licong commented Jan 19, 2015

一情况是没有指定node的版本所致。可以使用下面命令解决:

nvm ls

v0.10.35

nvm use 0.10.35

Now using node v0.10.35

nvm alias default 0.10.35

default -> 0.10.35 (-> v0.10.35)

@yun-cn
Copy link

yun-cn commented Dec 11, 2018

个人推荐,使用全局安装

sudo npm install hexo-cli -g

@JLHwung
Copy link
Collaborator

JLHwung commented Dec 11, 2018

sudo npm install hexo-cli -g

Do not use sudo to install hexo-cli, see #2785 (comment)

@yun-cn
Copy link

yun-cn commented Dec 12, 2018

@JLHwung
Thanks , Changing file permissions should be the best method!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants