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

hexo shows error message #1055

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

hexo shows error message #1055

haifengkao opened this issue Feb 17, 2015 · 18 comments

Comments

@haifengkao
Copy link

'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
Copy link

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

@haifengkao
Copy link
Author

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
Copy link
Member

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

@tommy351
Copy link
Member

Try to install with --no-optional option.

$ npm install hexo --no-optional

@haifengkao
Copy link
Author

Thx. It works. Can you explain what happened?

@tommy351
Copy link
Member

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
Copy link

$ 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
Copy link

$ npm install hexo --no-optional

it works.

@Xuanwo
Copy link
Contributor

Xuanwo commented Jul 2, 2015

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

@leesei leesei closed this as completed Jul 16, 2015
@JeremyDa
Copy link

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

@geekplux
Copy link

$ npm install hexo --no-optional

it doesn't work for me...

@zgpeace
Copy link

zgpeace commented Oct 24, 2015

work for me, thx

@FrancisShi
Copy link

"npm uninstall hexo" first if you need

@jeff2go
Copy link

jeff2go commented Jan 8, 2016

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

That works for me.

@allenkung
Copy link

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
Copy link

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

@b1gtang
Copy link

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
Copy link
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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests