Molunerfinn / hexo-theme-melody

:musical_keyboard:A simple & beautiful & fast theme for Hexo.
https://molunerfinn.com
Other
1.59k stars 213 forks source link

hexo g error #106

Closed jerryc127 closed 6 years ago

jerryc127 commented 6 years ago

I want to create a new issue

Melody Information

Melody Version:

Platform: Windows

Browser:

Expected behavior

hexo g success

Actual behavior

some problem when the command hexo g running

snipaste_2018-06-21_23-15-01 snipaste_2018-06-21_23-15-11

Steps to reproduce the behavior

Feature Request


Molunerfinn commented 6 years ago

Node version?

jerryc127 commented 6 years ago

v8.11.2

Molunerfinn commented 6 years ago

Show me your package.json which is in your hexo blog folder.

jerryc127 commented 6 years ago

{ "name": "hexo-site", "version": "0.0.0", "private": true, "hexo": { "version": "3.7.1" }, "dependencies": { "hexo": "^3.2.0", "hexo-admin": "^2.3.0", "hexo-asset-image": "0.0.3", "hexo-autonofollow": "^1.0.1", "hexo-deployer-git": "^0.3.1", "hexo-generator-archive": "^0.1.5", "hexo-generator-baidu-sitemap": "^0.1.2", "hexo-generator-category": "^0.1.3", "hexo-generator-feed": "^1.2.2", "hexo-generator-index": "^0.2.1", "hexo-generator-search": "^2.2.5", "hexo-generator-searchdb": "^1.0.8", "hexo-generator-sitemap": "^1.2.0", "hexo-generator-tag": "^0.2.0", "hexo-helper-live2d": "^3.0.3", "hexo-leancloud-counter-security": "^1.3.2", "hexo-neat": "^1.0.4", "hexo-renderer-ejs": "^0.3.0", "hexo-renderer-jade": "^0.4.1", "hexo-renderer-marked": "^0.3.2", "hexo-renderer-pug": "0.0.5", "hexo-renderer-stylus": "^0.3.3", "hexo-server": "^0.2.2", "hexo-symbols-count-time": "^0.4.2", "hexo-tag-cloud": "^2.0.10", "live2d-widget-model-haruto": "^1.0.5" }, "main": "index.js", "devDependencies": {}, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "description": "" }

Molunerfinn commented 6 years ago

image I found you have two pug renderer. The hexo-renderer-jade is also a pug renderer and is provided by official. You need to remove the hexo-renderer-pug.

Try this:

npm remove hexo-renderer-pug

And remove your node_modules folder and then npm install again.

Then

hexo clean
hexo g

Try it.

Molunerfinn commented 6 years ago

Any feedback? Or I will close this issue~

jerryc127 commented 6 years ago

it still show the error

upupming commented 6 years ago

How about using this package.json? This is what I am using now.

jerryc127 commented 6 years ago

it solved, thanks. change the hexo config "keyword"