npm i robotjs
[email protected] install /Users/qashto/Documents/dev/apps/qodemate/node_modules/robotjs
prebuild-install || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=12.13.0 runtime=node arch=x64 platform=darwin)
CXX(target) Release/obj.target/robotjs/src/robotjs.o
../src/robotjs.cc:63:39: error: too few arguments to function call, single
argument 'context' was not specified
const size_t x = info[0]->Int32Value();
~~~~~~~ ^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2613:3: note:
'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8config.h:351:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
^
../src/robotjs.cc:64:39: error: too few arguments to function call, single
argument 'context' was not specified
const size_t y = info[1]->Int32Value();
~~~~~~~ ^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2613:3: note:
'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8config.h:351:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
^
../src/robotjs.cc:97:33: error: too few arguments to function call, single
argument 'context' was not specified
size_t x = info[0]->Int32Value();
~~~~~~~ ^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2613:3: note:
'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8config.h:351:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
^
../src/robotjs.cc:98:33: error: too few arguments to function call, single
argument 'context' was not specified
size_t y = info[1]->Int32Value();
~~~~~~~ ^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2613:3: note:
'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8config.h:351:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
^
../src/robotjs.cc:114:33: error: too few arguments to function call, single
argument 'context' was not specified
size_t x = info[0]->Int32Value();
~~~~~~~ ^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2613:3: note:
'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8config.h:351:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
^
../src/robotjs.cc:115:33: error: too few arguments to function call, single
argument 'context' was not specified
size_t y = info[1]->Int32Value();
~~~~~~~ ^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2613:3: note:
'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8config.h:351:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
^
../src/robotjs.cc:143:39: error: no matching member function for call to
'ToString'
v8::String::Utf8Value bstr(info[0]->ToString());
~~~^~
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2572:44: note:
candidate function not viable: requires single argument 'context', but
no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2588:31: note:
candidate function not viable: requires single argument 'isolate', but
no arguments were provided
Local
^
../src/robotjs.cc:159:22: error: no matching member function for call to
'BooleanValue'
doubleC = info[1]->BooleanValue();
~~~^~~~
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2603:8: note:
candidate function not viable: requires single argument 'isolate', but
no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2606:51: note:
candidate function not viable: requires single argument 'context', but
no arguments were provided
V8_WARN_UNUSED_RESULT Maybe
^
../src/robotjs.cc:239:35: error: too few arguments to function call, single
argument 'context' was not specified
mouseDelay = info[0]->Int32Value();
~~~~~ ^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2613:3: note:
'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8config.h:351:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
^
../src/robotjs.cc:251:30: error: too few arguments to function call, single
argument 'context' was not specified
int x = info[0]->Int32Value();
~~~~~~~ ^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2613:3: note:
'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8config.h:351:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
^
../src/robotjs.cc:252:30: error: too few arguments to function call, single
argument 'context' was not specified
int y = info[1]->Int32Value();
~~~~~~~ ^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:2613:3: note:
'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe
^
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8config.h:351:31: note:
expanded from macro 'V8_WARN_UNUSED_RESULT'
^
../src/robotjs.cc:418:44: error: expected '(' for function-style cast or
type construction
int GetFlagsFromString(v8::Handle
~~~^~^
../src/robotjs.cc:418:28: error: no member named 'Handle' in namespace 'v8'
int GetFlagsFromString(v8::Handle
~
../src/robotjs.cc:418:46: error: use of undeclared identifier 'value'; did
you mean 'False'?
int GetFlagsFromString(v8::Handle
^~~~~
False
/Users/qashto/Library/Caches/node-gyp/12.13.0/include/node/v8.h:304:25: note:
'False' declared here
friend Local
^
../src/robotjs.cc:418:53: error: unexpected type name 'MMKeyFlags': expected
expression
int GetFlagsFromString(v8::Handle
^
../src/robotjs.cc:418:65: error: use of undeclared identifier 'flags'
int GetFlagsFromString(v8::Handle
^
../src/robotjs.cc:418:71: error: expected ';' after top level declarator
int GetFlagsFromString(v8::Handle
^
;
../src/robotjs.cc:762:1: error: unknown type name 'BMP'
BMP buildBMP(Local
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/qashto/.npm/_logs/2019-11-21T05_35_07_291Z-debug.log
Use branch "fix/node13"
A new version of robotjs supporting the latest NodeJS version will be published soon.
thanks! how soon?
nvm and switch to the version node@8@liketurbo The issue being discussed is "Installation failed on nodejs 12.13.0" not how to install robotjs for node 8.
Also it works now!!! v0.6.0 works for me! Thank you @oktapodia :)
You are welcome, bear in mind that the latest Nodejs version does not work well with robotjs because of a bug in libuv https://github.com/libuv/libuv/pull/2568.
That should be solved soon.
Most helpful comment
A new version of robotjs supporting the latest NodeJS version will be published soon.