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

hexo init时报错 #2540

Closed
lilopusic opened this issue Apr 28, 2017 · 11 comments
Closed

hexo init时报错 #2540

lilopusic opened this issue Apr 28, 2017 · 11 comments
Labels
bug Something isn't working

Comments

@lilopusic
Copy link

执行完npm install -g hexo-cli之后,进入新建的文件夹(路径为E:\blog),执行hexo init,报错如下():
ERROR Local hexo not found in E:
ERROR Try running: 'npm install hexo --save'

@NoahDragon
Copy link
Member

NoahDragon commented Apr 28, 2017

如果你的Hexo版本是3.3.1,这个issue已经在#2520 修复了。

@NoahDragon
Copy link
Member

Hexo已更新到3.3.5,请查看此问题是否还存在。

@NoahDragon NoahDragon added the bug Something isn't working label Apr 28, 2017
@NoahDragon
Copy link
Member

这个问题还在,请使用hexo init <folder name>作为替代。

@NoahDragon
Copy link
Member

是否在E:下有package.json和node_modules?如果有请删除后再在E:\blog下运行hexo init

@lilopusic
Copy link
Author

确实是这样,删除之后成功了,我之前都没看到。。谢谢:-)

@Crazier-qi
Copy link

Crazier-qi commented Jul 22, 2017

hexo init后遇到问题
image
这个是什么原因,怎么解决?

@lilopusic
Copy link
Author

这个问题和我的问题不一样,而且这是已经关闭了的issue,你可以新开一个问题。
另外从图片上看是你访问GitHub出了问题,而不是hexo的问题。 @Crazier-qi

@linzhenq
Copy link

@Crazier-qi我也遇到你这样的问题,请问你是如何解决的

@Crazier-qi
Copy link

我是因为git配置了多账户,.ssh目录下的config文件出错,因此连接github出错,你可以先运行 ssh git
@github.com看看你的github和是否可以正常访问,如果可以的话再确认下git clone用的是https协议还是ssh协议。应该就没问题了。

@NHTcoding
Copy link

hexo init时报错,如下:

hutaodeMacBook-Pro:MyFiles hutao$ hexo init WeBlogs
INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
fatal: '[email protected]/hexojs/hexo-starter.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
WARN  git clone failed. Copying data instead
FATAL {
  err: [Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/hexo-cli/assets'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'scandir',
    path: '/usr/local/lib/node_modules/hexo-cli/assets'
  }
} Something's wrong. Maybe you can find the solution here: %s http://hexo.io/docs/troubleshooting.html

hexo的版本是4.2.0。git可以正常连接github.com。求问这是个什么问题。

@wuke1234
Copy link

INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Unknown error

WARN git clone failed. Copying data instead
FATAL {
err: [Error: EPERM: operation not permitted, mkdir 'D:'] {
errno: -4048,
code: 'EPERM',
syscall: 'mkdir',
path: 'D:\'
}
} Something's wrong. Maybe you can find the solution here: %s http://hexo.io/docs/troubleshooting.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants