hexo icon indicating copy to clipboard operation
hexo copied to clipboard

hexo init,but no file created

Open lucoxlee opened this issue 9 years ago • 11 comments

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! `

lucoxlee avatar Jul 11 '17 07:07 lucoxlee

first: 'npm install' then will be ok

TopVitamin avatar Jul 11 '17 09:07 TopVitamin

As @TopVitamin mentioned, run npm install instead.

NoahDragon avatar Jul 11 '17 14:07 NoahDragon

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

lucoxlee avatar Jul 12 '17 02:07 lucoxlee

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

tea3 avatar Jul 12 '17 06:07 tea3

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

lucoxlee avatar Jul 12 '17 11:07 lucoxlee

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

NoahDragon avatar Jul 12 '17 14:07 NoahDragon

thanks, well, another server hasn't this problem

lucoxlee avatar Jul 16 '17 05:07 lucoxlee

@lucoxlee can we close this issue out?

connor11528 avatar Aug 16 '17 16:08 connor11528

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.

ratoi-crysty avatar Oct 27 '17 07:10 ratoi-crysty

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

imleoo avatar Oct 23 '19 06:10 imleoo

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

lonely-island avatar Mar 22 '20 09:03 lonely-island