GithubHelp home page GithubHelp logo

Comments (9)

hugohil avatar hugohil commented on September 26, 2024

I just tried using nvm and with 0.10.39, as well as with 0.10.31, I get a different error:
Error: Module did not self-register.

from robotjs.

Nedomas avatar Nedomas commented on September 26, 2024

It's because electron does not use standard node. Check out how you can rebuild the modules http://electron.atom.io/docs/v0.28.0/tutorial/using-native-node-modules/

I am having a similar problem with robotjs. It is working perfectly when I run it with electron app_dir, but when I package it and run as an app, robotjs just does not execute commands anymore. No errors, nothing. Where should I debug?

from robotjs.

Nedomas avatar Nedomas commented on September 26, 2024

@hugohil any luck figuring it out? :)

from robotjs.

octalmage avatar octalmage commented on September 26, 2024

Hey sorry guys! I've been busy with work, and focusing on the RobotJS Windows build. I'm an nw.js guy also, so unfortunately I may not get to this for a while.

from robotjs.

octalmage avatar octalmage commented on September 26, 2024

So I did some work on ScreenCat and RobotJS worked fine! I used the apm install method.

@hugohil what command are you using to build/install?

from robotjs.

hugohil avatar hugohil commented on September 26, 2024

I'm really sorry I didn't reply, I was busy at the time and this got out of my mind after :/

I just tested and thanks to your fix, it now works perfectly ! 👍
Also, thank @Nedomas for your suggestions about rebuilding modules.

I'll soon test the packaging issue and close the issue if it worked :)

from robotjs.

octalmage avatar octalmage commented on September 26, 2024

Awesome! Sounds good!

from robotjs.

ewnd9 avatar ewnd9 commented on September 26, 2024

I've got this error on ./node_modules/.bin/electron-rebuild

../node_modules/nan/nan.h:779:12: error: ‘Use’ is not a member of ‘node::Buffer’
     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);

Anyone encountered something similar? (Ubuntu 14.04, node v0.10.37)

from robotjs.

octalmage avatar octalmage commented on September 26, 2024

I'm going to close this, if anyone still needs help please open a new issue!

from robotjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.