ayoubserti / node-iohook

Binding of libuiohook for nodejs
22 stars 11 forks source link

cmake-js compile step error: OMG There is no Visual C++ compiler installed #9

Closed summivox closed 7 years ago

summivox commented 7 years ago

But I do (both 2015 and 2017), and other packages using node-gyp seem to be working just fine.

$ npm i --save node-iohook
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm

> node-iohook@0.0.1 install C:\~\sketch\robotjs\node_modules\node-iohook
> cmake-js compile

ERR! OMG There is no Visual C++ compiler installed. Install Visual C++ Build Toolset or Visual Studio.
ERR! OMG There is no Visual C++ compiler installed. Install Visual C++ Build Toolset or Visual Studio.
npm WARN robotjs-test@1.0.0 No description
npm WARN robotjs-test@1.0.0 No repository field.
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\yizhong\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "i" "--save" "node-iohook"
npm ERR! node v8.0.0
npm ERR! npm  v3.10.6
npm ERR! code ELIFECYCLE

npm ERR! node-iohook@0.0.1 install: `cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-iohook@0.0.1 install script 'cmake-js compile'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-iohook package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cmake-js compile
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-iohook
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-iohook
npm ERR! There is likely additional logging output above.
ayoubserti commented 7 years ago

Hi @summivox

Thank you for reporting that issue. It seems that CMake can't find Visual Studio. which the CMake you're installed.

a small tip: you can set up VS variables and Env by calling C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat in the current shell

ayoubserti commented 7 years ago

@summivox Any update?