obs-studio-node icon indicating copy to clipboard operation
obs-studio-node copied to clipboard

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

Open Tanoshi0625 opened this issue 2 years ago • 4 comments

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

Tanoshi0625 avatar Mar 21 '24 02:03 Tanoshi0625

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

summeroff avatar Mar 21 '24 02:03 summeroff

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.

Tanoshi0625 avatar Mar 21 '24 02:03 Tanoshi0625

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.

summeroff avatar Mar 21 '24 02:03 summeroff

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/.

aza547 avatar Apr 01 '24 15:04 aza547