Comments (12)
Still has errors even with the --unsafe-perm syntax:
`> [email protected] install /Users/ernest/.npm-global/lib/node_modules/xpc-connection
> node-gyp rebuild
CXX(target) Release/obj.target/binding/src/XpcConnection.o
../src/XpcConnection.cpp:103:41: warning: 'IntegerValue' is deprecated: Use
maybe version [-Wdeprecated-declarations]
xpcObject = xpc_int64_create(value->IntegerValue());
^
/Users/ernest/.node-gyp/11.13.0/include/node/v8.h:2570:3: note: 'IntegerValue'
has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/Users/ernest/.node-gyp/11.13.0/include/node/v8config.h:326:29: note: expanded
from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../src/XpcConnection.cpp:113:40: warning: 'ToObject' is deprecated: Use maybe
version [-Wdeprecated-declarations]
Local<Object> valueObject = value->ToObject();
^
/Users/ernest/.node-gyp/11.13.0/include/node/v8.h:2549:10: note: 'ToObject' has
been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
^
/Users/ernest/.node-gyp/11.13.0/include/node/v8config.h:326:29: note: expanded
from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../src/XpcConnection.cpp:123:40: warning: 'ToObject' is deprecated: Use maybe
version [-Wdeprecated-declarations]
Local<Object> valueObject = value->ToObject();
^
/Users/ernest/.node-gyp/11.13.0/include/node/v8.h:2549:10: note: 'ToObject' has
been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
^
/Users/ernest/.node-gyp/11.13.0/include/node/v8config.h:326:29: note: expanded
from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../src/XpcConnection.cpp:143:89: error: too few arguments to function call,
expected 2, have 1
...propertyValue = object->GetRealNamedProperty(propertyName->ToString());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/ernest/.node-gyp/11.13.0/include/node/v8.h:3668:3: note:
'GetRealNamedProperty' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty(
^
/Users/ernest/.node-gyp/11.13.0/include/node/v8config.h:418:31: note: expanded
from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/XpcConnection.cpp:143:79: warning: 'ToString' is deprecated: Use maybe
version [-Wdeprecated-declarations]
...propertyValue = object->GetRealNamedProperty(propertyName->ToString());
^
/Users/ernest/.node-gyp/11.13.0/include/node/v8.h:2548:10: note: 'ToString' has
been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
^
/Users/ernest/.node-gyp/11.13.0/include/node/v8config.h:326:29: note: expanded
from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../src/XpcConnection.cpp:254:12: warning: 'MakeCallback' is deprecated
[-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").T...
^
../node_modules/nan/nan.h:980:3: note: 'MakeCallback' has been explicitly marked
deprecated here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^
../node_modules/nan/nan.h:103:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
^
../src/XpcConnection.cpp:263:12: warning: 'MakeCallback' is deprecated
[-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").T...
^
../node_modules/nan/nan.h:980:3: note: 'MakeCallback' has been explicitly marked
deprecated here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^
../node_modules/nan/nan.h:103:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
^
6 warnings and 1 error 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/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:193:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/ernest/.npm-global/lib/node_modules/xpc-connection
gyp ERR! node -v v11.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ernest/.npm/_logs/2019-04-02T12_00_22_411Z-debug.log`
from node-xpc-connection.
Same issue here, nothing above helped, had some news?
node --version == v10.16.0
npm --version == 6.9.0
macOS version == 10.14.5
from node-xpc-connection.
Try: sudo npm i -g xpc-connection --unsafe-perm
from node-xpc-connection.
Still have an issue
^
../src/XpcConnection.cpp:143:89: error: too few arguments to function call, expected 2, have 1
Local<Value> propertyValue = object->GetRealNamedProperty(propertyName->ToString());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
...
6 warnings and 1 error 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/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:197:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.5.0
gyp ERR! command "/Users/mxtnr/n/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/mxtnr/xp/xiaomi-mi-band-2-heart-rate/miband-js-app/node_modules/xpc-connection
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/bluetooth-hci-socket):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"linux,android,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/xpc-connection):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ [email protected]
added 17 packages from 12 contributors and audited 143 packages in 4.045s
found 2 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
xp/xiaomi-mi-band-2-heart-rate/miband-js-app took 5s ❯ miband-test
internal/modules/cjs/loader.js:651
throw err;
^
Error: Cannot find module 'xpc-connection'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:649:15)
at Function.Module._load (internal/modules/cjs/loader.js:575:25)
at Module.require (internal/modules/cjs/loader.js:705:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.<anonymous> (/Users/mxtnr/xp/xiaomi-mi-band-2-heart-rate/miband-js-app/node_modules/noble/lib/mac/highsierra.js:7:21)
at Module._compile (internal/modules/cjs/loader.js:799:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
at Module.load (internal/modules/cjs/loader.js:666:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)
from node-xpc-connection.
CXXFLAGS="-mmacosx-version-min=10.14" LDFLAGS="-mmacosx-version-min=10.14" npm add xpc-connection
didn't help too.
from node-xpc-connection.
GetRealNamedProperty actually have 2 args: Local context, Local key
https://github.com/v8/v8/blob/381a7f9/include/v8.h#L3653
from node-xpc-connection.
how to understand for what the Local context arg added?
from node-xpc-connection.
worked with node 8 for me
from node-xpc-connection.
some news?
from node-xpc-connection.
Also having this issue
from node-xpc-connection.
Same issue as above.
from node-xpc-connection.
Still having this issue in 2023.
from node-xpc-connection.
Related Issues (20)
- Node v4 node-gyp rebuild fails HOT 2
- Clone of this repo fails to build Node 0.12 / 4.2.3, node-gyp 3.2.1, gcc HOT 2
- Error when installing xpc-connection on OSX El Capitan HOT 1
- Build Failure with node v6 HOT 5
- nwjs crash when require('noble') HOT 3
- Keeps process open HOT 1
- npm install compiler errors HOT 4
- node version error when working with electron HOT 4
- JXCore fails to run Noble HOT 1
- xpc-connection install issue on mac HOT 1
- nan dependency HOT 1
- symbolic link pointing to itself OSX 10.12.6 HOT 1
- Module installation fails on Mac (macOS 10.13.4) after upgrade to node v10.0.0 and npm v6.0.0 HOT 23
- xpc-connection issue HOT 1
- Install fails on macOS 10.14 and node 6 HOT 4
- Install fails on OSX node v11.1.0 HOT 1
- Fails to build Mac OS HOT 1
- crash with exception in libuv's threadpool.c on OS X Mavericks 10.9.5 HOT 10
- 0.1.4 build fails when building for nw 0.8.6 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-xpc-connection.