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

3.1.1 hexo generate 之后,浏览器打开locoalhost:4000显示Cannot GET /,hexo deploy之后也没有显示 #1384

Closed
muwan opened this issue Jul 10, 2015 · 5 comments

Comments

@muwan
Copy link

muwan commented Jul 10, 2015

昨天刚安装,并且安装了以下模块
npm install hexo-server --save
npm install hexo-deployer-git --save
npm install hexo-generator-feed@1 --save
npm install hexo-generator-sitemap@1 --save
生成静态页面后,本地预览显示Cannot GET /
把内容部署到github后也没有什么显示。
麻烦指教一下,谢谢了!

@Xuanwo
Copy link
Contributor

Xuanwo commented Jul 10, 2015

你执行了npm install么?

@muwan
Copy link
Author

muwan commented Jul 10, 2015

当时执行的是 npm install hexo-deployer-git --save
不知道是不是您说的npm install
刚才重新试了一下,npm install,出现的截图如下
2015-07-10 2 52 28
)

@Xuanwo
Copy link
Contributor

Xuanwo commented Jul 10, 2015

image
你要在这个目录里面进行npm install

@muwan
Copy link
Author

muwan commented Jul 10, 2015

多谢了,问题已经解决
安装到使用过程出现如下几个问题:
npm install --unsafe-perm -g hexo安装不了,
解决方法
sudo npm install -g hexo

3.1.1hexo init /xxx/xxxxx/目录 安装的时候,接下来需要npm install

在部署之前需要安装这些
npm install hexo-server --save
npm install hexo-deployer-git --save
npm install hexo-generator-feed@1 --save
npm install hexo-generator-sitemap@1 --save

@muwan muwan closed this as completed Jul 10, 2015
@Xuanwo
Copy link
Contributor

Xuanwo commented Jul 10, 2015

@muwan 现在推荐使用hexo-cli管理。
npm install hexo-cli -g

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

2 participants