IAMDinosaur icon indicating copy to clipboard operation
IAMDinosaur copied to clipboard

Node is unable to find 'robot.js' module

Open ghost opened this issue 7 years ago • 4 comments

I am trying to use robot.js module on node, however it returns an error on line command which says the module cannot be found. I have tried massive troubleshooting steps, including add aditional modules which could be missing, and frameworks on my system. I already have:

Python v. 2.7.12 node v.6.7.0 Windows Software Development Kit v. 8.1 Visual Studio 2015 Community (should works fine)

The error log says:

C...\node index

module.js:457 throw err; ^

Error: Cannot find module 'robotjs'

I instaled the module already. Any help, please?

ghost avatar Oct 03 '16 00:10 ghost

Try npm install robotjs

untitledgollum avatar Oct 15 '16 22:10 untitledgollum

@jonatasbvt did running the command @Untitled-Mines mentioned worked for you?

if not then robotjs is probably not installed on your system you can check with the following command: npm list robotjs

I was unable to install robotjs. The following package helped me install the missing tools on my computer (looks like you are using windows) which in turn helped with installing robotjs: https://www.npmjs.com/package/windows-build-tools

npm install --global --production windows-build-tools

tiagosomda avatar Nov 17 '16 02:11 tiagosomda

I am facing the same issue. However when executed npm list robotjs it displayed installed robot js version. however it still throwing an error

module.js:549 throw err; ^ Error: Cannot find module './build/Release/robotjs.node'

Please help me to resolve this issue

dixitgargi avatar Sep 26 '18 04:09 dixitgargi

I have the same issues, running this from VSCode i dont understand why he is asking for VSIX extention.

johanvanwambeke avatar Nov 08 '18 10:11 johanvanwambeke