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

Error: Cannot find module './build/Release/DTraceProviderBindings' #134

Open
Vpvladimirov opened this issue Jan 6, 2022 · 0 comments
Open

Comments

@Vpvladimirov
Copy link

Versions I am using:
MacOS v12.1
npm v8.3.0
node v14.18.2

Hello, I am working on a project and few days ago everything was working properly. I updated the MacOS version and restarted the laptop and then the following 3 errors appeared when trying to start the project:
Error: Cannot find module './build/Release/DTraceProviderBindings'
Error: Cannot find module './build/default/DTraceProviderBindings'
Error: Cannot find module './build/Debug/DTraceProviderBindings'

That's the only thing I have done so I am guessing it would be something with the MacOS version but I still tried the following:

  • tried npm versions 6.14.15, 7.7.0, 8.3.0 (as I saw an old issue in your GitHub saying this version fixes the problem)
  • tried node versions 8, 12, 14.18.2
  • tried to uninstall both npm and node and reinstall them again
  • tried to clear the cache of npm and node-gyp (rm -rf ~/Library/Caches/node-gyp/ and npm cache clean --force)
  • tried to rebuild the dtrace-provider (npm rebuild dtrace-provider)
  • when I navigate to node_modules/dtrace-provider/build/Release folder I don't see the DTraceProviderBindings folder and the default and Debug folders are completely missing. I find DTraceProviderBindings folders inside node_modules/dtrace-provider/build/Release/.deps/Release/obj.target/DtraceProviderBindings and node_modules/dtrace-provider/build/Release/obj.target/DtraceProviderBindings so I tried to move these folders one by one to the root but again with no lock (also tried to change the code to look for them where I am finding them)

When I run the same project on Windows machine it is working fine but as far as I understand the code it doesn't care about that DTraceProviderBindings folder on win (the if statement is only about platforms darwin, sunos and freebsd)

Please let me know if I can help with some additional information and any ideas what else can I try.
At this point I will appreciate even if you give me the needed file and I manually put it in place as this is blocking my work.

Thank you in advance :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant