Hi @iraklitchedia – VS code use the electron runtime, so if husky is not doing anything in particular to make sure it uses the node runtime then it makes sense the SDK will not be able to find its binary. I think there are 2 work-arounds:
- You should be able to change the package.json test script to use the package runner (npx), so something like
"test": "npx ts-mocha"or"test": "npx vitest run" - You can point the environment variable
CN_PREBUILD_PATH_OVERRIDEto the path of your prebuild (should be innode_modules/@couchbase/)
I hope this helps.