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

如果主题下面有node modules,hexo serve会报错内存溢出 #3885

Open
Shen-Yu opened this issue Nov 26, 2019 · 3 comments
Open

如果主题下面有node modules,hexo serve会报错内存溢出 #3885

Shen-Yu opened this issue Nov 26, 2019 · 3 comments

Comments

@Shen-Yu
Copy link

@Shen-Yu Shen-Yu commented Nov 26, 2019

Check List

Please check followings before submitting a new issue.

  • I have already read Docs page & Troubleshooting page
  • I have already searched existing issues and they are not help to me
  • I examined error or warning messages and it's difficult to solve
  • Using the latest version of Hexo (run hexo version to check)
  • Node.js is higher than 8.6.0

Expected behavior

我期望在开发主题的时候能实时预览效果,我的主题里面静态资源用webpack来进行打包

Actual behavior

当我在主题目录下安装完依赖之后并run dev,回到项目根目录serve,发现报错

How to reproduce?

  • Step1
    在主题目录下安装完依赖
  • Step2
    回到项目根目录serve
  • etc...
    发现报错

Environment & Settings

Node.js & npm version
10.14.1
6.4.1

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Hexo and Plugin version(npm ls --depth 0)
4.0.0

Your package.json package.json
"hexo": "^4.0.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^1.0.0",
"hexo-generator-tag": "^1.0.0",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-stylus": "^1.1.0",
"hexo-renderer-marked": "^2.0.0",
"hexo-server": "^1.0.0"

Others

@curbengh

This comment has been minimized.

Copy link
Contributor

@curbengh curbengh commented Nov 27, 2019

May be fixed by #3797 (to be released in 4.1.0).

Can you test the master branch?

package.json
-"hexo": "^4.0.0",
+"hexo": "hexojs/hexo",
@Shen-Yu

This comment has been minimized.

Copy link
Author

@Shen-Yu Shen-Yu commented Dec 4, 2019

Thank you,but it's still not work.

@curbengh

This comment has been minimized.

Copy link
Contributor

@curbengh curbengh commented Dec 6, 2019

what about the ignore: option in _config.yml?

ignore:
  - '**/themes/*/node_modules/**'

Related issue: hexojs/hexo-server#45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.