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

hexo shows error message #1055

Closed
haifengkao opened this Issue Feb 17, 2015 · 18 comments

Comments

@haifengkao

haifengkao commented Feb 17, 2015

'hexo' command shows the error message:
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }

Am I missing something in the installation steps?

@appleboy

This comment has been minimized.

appleboy commented Feb 17, 2015

What is hexo version? 2.x or 3.x

@haifengkao

This comment has been minimized.

haifengkao commented Feb 17, 2015

hexo --version
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
hexo: 3.0.0-rc.4
os: Darwin 14.1.0 darwin x64
http_parser: 2.3
node: 0.12.0
v8: 3.28.73
uv: 1.0.2
zlib: 1.2.8
modules: 14
openssl: 1.0.1l

@tommy351

This comment has been minimized.

Member

tommy351 commented Feb 17, 2015

Maybe it's related to trentm/node-bunyan#216

@tommy351

This comment has been minimized.

Member

tommy351 commented Feb 17, 2015

Try to install with --no-optional option.

$ npm install hexo --no-optional
@haifengkao

This comment has been minimized.

haifengkao commented Feb 17, 2015

Thx. It works. Can you explain what happened?

@tommy351

This comment has been minimized.

Member

tommy351 commented Feb 17, 2015

Though I don't know why dtrace module not working on your computer so far. In fact, Hexo didn't use dtrace feature and it's just a optional dependency. So you can just skip the installation.

@haiiiiiyun

This comment has been minimized.

haiiiiiyun commented Jun 13, 2015

$ npm install hexo --no-optional

also works for me.

Environment:

hexo_blog $ hexo --version
hexo: 3.1.1
os: Darwin 14.3.0 darwin x64
http_parser: 2.3
node: 0.12.4
v8: 3.28.71.19
uv: 1.5.0
zlib: 1.2.8
modules: 14
openssl: 1.0.1m
@iqiancheng

This comment has been minimized.

iqiancheng commented Jul 2, 2015

$ npm install hexo --no-optional

it works.

@Xuanwo

This comment has been minimized.

Contributor

Xuanwo commented Jul 2, 2015

In the newest version , you may need npm install hexo --no-optional --save

@leesei leesei closed this Jul 16, 2015

@JeremyDa

This comment has been minimized.

JeremyDa commented Jul 27, 2015

$ npm install hexo --no-optional
also works for me.

@geekplux

This comment has been minimized.

geekplux commented Oct 22, 2015

$ npm install hexo --no-optional

it doesn't work for me...

@zgpeace

This comment has been minimized.

zgpeace commented Oct 24, 2015

work for me, thx

@FrancisShi

This comment has been minimized.

FrancisShi commented Dec 16, 2015

"npm uninstall hexo" first if you need

@JeffreyChu

This comment has been minimized.

JeffreyChu commented Jan 8, 2016

first: $ npm uninstall hexo
then: $ npm install hexo --no-optional --save

That works for me.

@allenkung

This comment has been minimized.

allenkung commented Jan 10, 2016

Reinstall hexo with --no-optional doesn't work for me. So I backup and delete my hexo folder and redo hexo init. After that this error msg gone.

@lvtraveler

This comment has been minimized.

lvtraveler commented Mar 15, 2016

I had install hexo --no-optional much times,but it does not work for me when hexo deploy.

@b1gtang

This comment has been minimized.

b1gtang commented Mar 21, 2016

npm install hexo --no-optional
It works for me.

@hexojs hexojs locked and limited conversation to collaborators Mar 26, 2016

@leesei

This comment has been minimized.

Member

leesei commented Mar 26, 2016

@lvtraveler you are probably having a different issue
please open new issue and post your log

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.