不管是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' }
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
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.
Most helpful comment
$ npm uninstall hexo-cli -g$ npm install hexo-cli -gresolve-hexo-DTraceProviderBindings-MODULE-NOT-FOUND