hexo init,but no file created

Created on 11 Jul 2017  ·  11Comments  ·  Source: hexojs/hexo

it shows:

`root@ubuntu:/home/soft# hexo init blog

INFO Cloning hexo-starter to /home/soft/blog
WARN git clone failed. Copying data instead
WARN Failed to install dependencies. Please run 'npm install' manually!
`

All 11 comments

first: 'npm install' then will be ok

As @TopVitamin mentioned, run npm install instead.

thanks, but you mean run npm install ahead, I got this
1
what should I do

@lucoxlee
It is recommended to delete all the folders and try again.
Can you solve this issue as follow ?

# hexo -v
# node -v
# cd ~/soft
# ls
# rm -rf blog
# hexo init blog
# cd blog
# ls
# npm install
# hexo s

How is the command screen displayed ?

thanks, it's not solved, it shows:
1

@lucoxlee Could you please try to clone the repo https://github.com/hexojs/hexo-starter , then run npm install inside the folder?

thanks, well, another server hasn't this problem

@lucoxlee can we close this issue out?

I know this has already been closed but I just want to add a small info for future users that stumble on this. This can also be caused by not having GIT installed on your PC.

did you not install git in your PC? I have this error too ,but before install git ,it's ok.

I know this has already been closed but I just want to add a small info for future users that stumble on this. This can also be caused by not having GIT installed on your PC.

thanks XD,it really helpful, i try to migrate my blog from wordpress on ECS to hexo, but forget didn't install git first , headache for a while

Was this page helpful?
0 / 5 - 0 ratings

Related issues

scaljeri picture scaljeri  ·  44Comments

LouisBarranqueiro picture LouisBarranqueiro  ·  28Comments

JackieLuo picture JackieLuo  ·  45Comments

ghost picture ghost  ·  27Comments

SukkaW picture SukkaW  ·  25Comments