问题
I encounter problems when I try to run the OAuth instance in my directory.
(Based on https://github.com/oauth-io/oauthd) My Redis server is up and running, all is set. I followed all the instructions, doubled check everything and even tried a fresh re-install of node, redis and oauthd. Yet, every time I run the oauthd start command, I get the same output:
{ [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' }
{ [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' }
{ [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' }
{ [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' }
{ [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' }
Do you have any suggestion on how to fix this ?
Thanks in advance ! ^Q
回答1:
every time i run hexo command, i encounter following problems
{ [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' }
After stackoverflowing it, i got the solution npm install hexo --no-optional.
As the hexo module have numerous dependencies, and rebuild it under an unstable network-environment would give rise to the same problem, there's no need to reinstall the whole module.
I found this module after seaching DTraceProviderBindings in hexo's folder.
this extension allows you to create native DTrace providers for your Node.js applications. That is, to create providers and probes which expose information specific to your application, rather than information about the node runtime. read more on it's github page.
Delete this optional module
npm uninstall dtrace-provider
Then no more error info.
But if you need to use this module, you can reinstall it
npm install dtrace-provider
of course it's optional.
回答2:
I have the same problem on my MacOS. After this steps:
- Install Xcode
rm -rf node_modulesnpm install
All work normal.
回答3:
I met this error in couple days then I found a way to fix it.
For anyone got this error on MacOS and using yarn instead of npm, please follow those steps:
- Install CodeX and open it, accept the term & privacy.
- Install node-gyp globally ( if node-gyp was installed, please try to remove it then add again).
yarn global remove node-gyp
yarn global add node-gyp
yarn
来源:https://stackoverflow.com/questions/35703727/issues-running-oauthd-instance