hexo启动服务访问 cannot get

Created on 3 Jun 2015  ·  14Comments  ·  Source: hexojs/hexo

根据教程一路做下来,最后启动服务:hexo server,访问浏览器出现 cannot get
image
求大神们帮忙指点啊,这个地方卡了好几天了

Most helpful comment

已经解决好问题了,依次执行如下命令就行:
npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server

All 14 comments

你有没有进行npm install?

必须install了,安装教程步骤一步步来的,最后服务也启动了

hexo init
npm install

这两步要连在一起,我之前也是这个问题,是没有执行"npm install"

已经解决好问题了,依次执行如下命令就行:
npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server

感谢liboyue23 ,这个问题已经解决。

感谢liboyue23/astraylinux ,问题已经解决。

当_posts下面没有任何文件时,也会出现此问题,怎么解决

@kaiziwangzi 那就创建一个文件

@Xuanwo 谢谢,暂时只找到这个方案

其实npm install 是按package.json里的内容初始化编译环境
每次-- save 一个本地包 都会把包信息写入到package.json
方便换的地方(如换个电脑神马的) 直接使用npm install 快速初始化编译环境
当然前提 nodejs git 还是要手工装的

thanks😁😁

在 2017年2月8日 下午10:47,沙漠之子 notifications@github.com写道:

其实npm install 是按package.json里的内容初始化编译环境
每次-- save 一个本地包 都会把包信息写入到package.json
方便换的地方(如换个电脑神马的) 直接使用npm install 快速初始化编译环境
当然前提 nodejs git 还是要手工装的


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hexojs/hexo/issues/1309#issuecomment-278348049, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AITYoJvuHazhDgfh1SGlA3_x2RGLqtMxks5radVtgaJpZM4E1xpF
.

@liboyue23 谢谢

感谢liboyue23 ,这个问题已经解决。

iboyue23, 我的主题在命令之后消失了...变成了默认的layout...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mashirozx picture mashirozx  ·  3Comments

awulkan picture awulkan  ·  3Comments

ghost picture ghost  ·  3Comments

testareas picture testareas  ·  3Comments

leoli-dev picture leoli-dev  ·  3Comments