Hexo: 一个不影响正常使用的error

Created on 17 May 2016  ·  6Comments  ·  Source: hexojs/hexo

不管是hexo g还是 hexo s还是 hexo d,都会报下面这个错,但是不影响正常功能。

{ [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' }

Most helpful comment

$ npm uninstall hexo-cli -g
$ npm install hexo-cli -g

resolve-hexo-DTraceProviderBindings-MODULE-NOT-FOUND

All 6 comments

Same as #1922 .

@carl0schen it didn't solve my problem

npm install hexo --no-optional --save

$ npm uninstall hexo-cli -g
$ npm install hexo-cli -g

resolve-hexo-DTraceProviderBindings-MODULE-NOT-FOUND

npm install hexo --no-optional --save can solve MODULE-NOT-FOUND problem

Both "reinstall" and "add '--save'" dont work.
But
$ sudo npm install dtrace-provider
it works for me.

Was this page helpful?
0 / 5 - 0 ratings