Issues running OAuthd instance

旧街凉风 提交于 2019-12-24 14:53:01

问题


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:

  1. Install Xcode
  2. rm -rf node_modules
  3. npm 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!