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

Cannot find module './obs_studio_client.node' or The file cannot be accessed by the system. #1426

Open
Tanoshi0625 opened this issue Mar 21, 2024 · 4 comments

Comments

@Tanoshi0625
Copy link

My environment:
OS:Windows 10 22H2
Node: v18.19.0
OSN: 0.23.107
YARN:1.22.21

Please help me, How to use osn in win64?

When i using "require", I got this error.

  1. Error: The file cannot be accessed by the system.

When i using "import", I got this error.
2. Error: Cannot find module './obs_studio_client.node'

My demo:
https://github.com/Tanoshi0625/test-program

@summeroff
Copy link
Contributor

after you run "yarn install" file should be in "node_modules\obs-studio-node" subfolder.

@Tanoshi0625
Copy link
Author

Tanoshi0625 commented Mar 21, 2024

after you run "yarn install" file should be in "node_modules\obs-studio-node" subfolder.

Yeah, it exists in subfolder, but terminal tell me Cannot find module.

@summeroff
Copy link
Contributor

another issue might be .node file is technically a dll. and it might need some other dlls to load. like missing a "Visual C++ Redistributable" is popular issue.
try to use https://www.dependencywalker.com to check if it has all dependency.

@aza547
Copy link

aza547 commented Apr 1, 2024

Check this perhaps? I have an answer there that might help you.
TLDR: Install this: https://aka.ms/vs/17/release/vc_redist.x64.exe/.

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

3 participants