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

xpc-connection install and npm start fails #6

Open
michaelmariaott opened this issue Dec 5, 2022 · 0 comments
Open

xpc-connection install and npm start fails #6

michaelmariaott opened this issue Dec 5, 2022 · 0 comments

Comments

@michaelmariaott
Copy link

michaelmariaott commented Dec 5, 2022

Hello,

I get the following error on macOS 12.6 when trying to resolve the dependencies with yarn:

2 warnings and 18 errors generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/19.2.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Darwin 21.6.0
gyp ERR! command \"/usr/local/Cellar/node/19.2.0/bin/node\" \"/usr/local/Cellar/node/19.2.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /Users/iilguest/Dev/JavaScript/muse-lsl/node_modules/xpc-connection
gyp ERR! node -v v19.2.0
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error

It says the package is optional, but when I npm start i get this error:

> muse-lsl@0.1.0 start
> node index

node:internal/modules/cjs/loader:1042
  throw err;
  ^

Error: Cannot find module 'xpc-connection'
Require stack:
- /Users/user/Dev/JavaScript/muse-lsl/node_modules/noble/lib/mac/highsierra.js
- /Users/user/Dev/JavaScript/muse-lsl/node_modules/noble/lib/mac/bindings.js
- /Users/user/Dev/JavaScript/muse-lsl/node_modules/noble/lib/resolve-bindings.js
- /Users/user/Dev/JavaScript/muse-lsl/node_modules/noble/index.js
- /Users/user/Dev/JavaScript/muse-lsl/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
    at Module._load (node:internal/modules/cjs/loader:885:27)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/Users/user/Dev/JavaScript/muse-lsl/node_modules/noble/lib/mac/highsierra.js:7:21)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12)
    at Module.require (node:internal/modules/cjs/loader:1105:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/user/Dev/JavaScript/muse-lsl/node_modules/noble/lib/mac/highsierra.js',
    '/Users/user/Dev/JavaScript/muse-lsl/node_modules/noble/lib/mac/bindings.js',
    '/Users/user/Dev/JavaScript/muse-lsl/node_modules/noble/lib/resolve-bindings.js',
    '/Users/user/Dev/JavaScript/muse-lsl/node_modules/noble/index.js',
    '/Users/user/Dev/JavaScript/muse-lsl/index.js'
  ]
}
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