deasync icon indicating copy to clipboard operation
deasync copied to clipboard

Error: Could not locate the bindings file

Open tnrich opened this issue 3 years ago • 7 comments

Hey there,

I'm getting the following error trying to start my app:

/Users/tnrich/Sites/lims/app-proxy/node_modules/bindings/bindings.js:126
  err = new Error(
        ^

Error: Could not locate the bindings file. Tried:
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/build/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/build/Debug/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/build/Release/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/out/Debug/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/Debug/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/out/Release/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/Release/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/build/default/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/compiled/15.8.0/darwin/arm64/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/addon-build/release/install-root/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/addon-build/debug/install-root/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/addon-build/default/install-root/deasync.node
 → /Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/lib/binding/node-v88-darwin-arm64/deasync.node
    at bindings (/Users/tnrich/Sites/lims/app-proxy/node_modules/bindings/bindings.js:126:9)
    at Object.<anonymous> (/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/index.js:30:31)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/Users/tnrich/Sites/lims/app-proxy/node_modules/node-etcd/lib/client.js:7:11)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/Users/tnrich/Sites/lims/app-proxy/node_modules/node-etcd/lib/index.js:9:10)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18) {
  tries: [
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/build/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/build/Debug/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/build/Release/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/out/Debug/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/Debug/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/out/Release/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/Release/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/build/default/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/compiled/15.8.0/darwin/arm64/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/addon-build/release/install-root/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/addon-build/debug/install-root/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/addon-build/default/install-root/deasync.node',
    '/Users/tnrich/Sites/lims/app-proxy/node_modules/deasync/lib/binding/node-v88-darwin-arm64/deasync.node'
  ]
}
error Command failed with exit code 1.

on new apple M1 node v15.8.0

Any ideas on how to fix this? Thanks!

tnrich avatar Feb 04 '21 00:02 tnrich

Same for me apple m1 node v14.15.5

vkabysh avatar Feb 21 '21 21:02 vkabysh

We noticed this after a code change brought in a dependency that had a dependency on deasync to a project that also had a dependency on deasync. Reverting that seemed to resolve the problem for us, but I don't know why having two dependencies on deasync would create this problem.

halfnibble avatar Mar 08 '21 20:03 halfnibble

I'm also getting this issue. Deasync is a dependency of cypress-testrail-reporter, and installing deasync as a direct dependency did not resolve the issue.

Node Version: 14.15.4 Deasync Version: 0.1.21 cypress-testrail-reporter Version: 1.2.7

malisbad avatar Apr 19 '21 08:04 malisbad

the same

chaoyangnz avatar Jun 04 '21 05:06 chaoyangnz

getting similar issue in eslint vscode plugin not beeing able to run because of missing bindings 🤷

chmelevskij avatar Mar 16 '22 16:03 chmelevskij

Still causing errors

ackvf avatar Jul 26 '22 03:07 ackvf

Is this because apple silicon is not supported yet?

trusktr avatar May 27 '23 05:05 trusktr