react-stack-cards
react-stack-cards copied to clipboard
cant install- loads of node errors
I get a crazy list of node errors when I try and install this. I'm using:
npm 6.11.3 node v11.13.0
I have a friend who has the exact same versions and he isn't getting any errors (we're also using the same package.json), so it isn't caused by the wrong version. Here is a sample of the errors, I will not copy it all:
Andrews-MBP:RealityCardsFrontEnd mcplums$ npm install
> [email protected] install /Users/mcplums/Repos/RealityCardsFrontEnd/node_modules/bufferutil
> node-gyp rebuild
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
../node_modules/nan/nan_new.h:29:56: warning: 'ToInteger' is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Integer>(v8::Handle<v8::Integer> i) { return i->ToInteger(); }
^
/Users/mcplums/Library/Caches/node-gyp/11.13.0/include/node/v8.h:2550:10: note: 'ToInteger' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version",
^
/Users/mcplums/Library/Caches/node-gyp/11.13.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
../node_modules/nan/nan_new.h:34:56: error: no matching member function for call to 'ToInt32'
To<v8::Int32>(v8::Handle<v8::Integer> i) { return i->ToInt32(); }
~~~^~~~~~~
/Users/mcplums/Library/Caches/node-gyp/11.13.0/include/node/v8.h:2531:43: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
^
/Users/mcplums/Library/Caches/node-gyp/11.13.0/include/node/v8.h:2544:30: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<Int32> ToInt32(Isolate* isolate) const);
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
../node_modules/nan/nan_new.h:39:65: error: too few arguments to function call, single argument 'context' was not specified
To<v8::Uint32>(v8::Handle<v8::Integer> i) { return i->ToUint32(); }
~~~~~~~~~~~ ^
/Users/mcplums/Library/Caches/node-gyp/11.13.0/include/node/v8.h:2529:3: note: 'ToUint32' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Uint32> ToUint32(
^
/Users/mcplums/Library/Caches/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))
^
In file included from ../src/bufferutil.cc:16:
In file included from ../node_modules/nan/nan.h:82:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:49:38: error: too few arguments to function call, expected 2, have 1
Wat do?