node-raylib icon indicating copy to clipboard operation
node-raylib copied to clipboard

couldn't run example game

Open VoW314 opened this issue 6 years ago • 5 comments

I have CMake installed but the example won't run. I get this error when I type : bin/node-raylib.exe templates/simple_game/simple_game.js S

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: cmake-js compile npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall 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! C:\Users\Shreyas\AppData\Roaming\npm-cache_logs\2019-07-29T22_14_29_326Z-debug.log PS C:\Users\Shreyas\3D Objects\node-raylib-master\templates\simple_game> bin/node-raylib.exe templates/simple_game.js

VoW314 avatar Jul 29 '19 22:07 VoW314

Hmm, I've just pushed a 0.2.0 update. And it seemed to have built okay for me. Which version of node are you on?

RobLoach avatar Jul 29 '19 23:07 RobLoach

v8.12.0 which I believe is not the current version now that I check it. Would that be the problem?

VoW314 avatar Jul 30 '19 15:07 VoW314

Quite possibly, yes. I think node-raylib needs at least Node.js 10.

RobLoach avatar Jul 30 '19 16:07 RobLoach

with Node.js v12.7 I still get an error. This is what I get from when it begins to say error. I got this after typing npm install.

CMake Error at CMakeLists.txt:2 (project): Generator

Visual Studio 15 2017 Win64

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred! See also "C:/Users/Shreyas/3D Objects/node-raylib-master/templates/simple_game/node_modules/raylib/build/CMakeFiles/CMakeOutput.log". ERR! OMG Process terminated: 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: cmake-js compile npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall 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! C:\Users\Shreyas\AppData\Roaming\npm-cache_logs\2019-07-31T23_45_17_726Z-debug.log PS C:\Users\Shreyas\3D Objects\node-raylib-master\templates\simple_game>

On Tue, Jul 30, 2019 at 12:06 PM Rob Loach [email protected] wrote:

Quite possibly, yes. I think node-raylib needs at least Node.js 10.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RobLoach/node-raylib/issues/39?email_source=notifications&email_token=AKU34EPKNTYDOMWNBPERZU3QCBRHPA5CNFSM4IHWX2HKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3EPFOY#issuecomment-516485819, or mute the thread https://github.com/notifications/unsubscribe-auth/AKU34ELWHJ6MPZRH3GPTXTDQCBRHPANCNFSM4IHWX2HA .

VoW314 avatar Jul 31 '19 23:07 VoW314

As I understood (I may be wrong), you need to install cmake-js (npm i cmake-js)

HastagGuigui avatar Aug 02 '21 19:08 HastagGuigui