Robotjs: Unable to re-build on windows with electron version 1.7.3

Created on 14 Dec 2017  ·  8Comments  ·  Source: octalmage/robotjs


Unable to rebuild robotjs on windows 7 in electron app version 1.7.3
My node version is 4.5.0.
Tried upgrading node but no change.

I tried following command :
npm rebuild --runtime=electron --target=1.7.3 --disturl=https://atom.io/download/atom-shell --abi=54

Got error :
prebuild-install http request GET https://github.com/octalmage/robotjs/releases/download/v0.4.7/robotjs-v0.4.7-electron-v54-win32-ia32.tar.gz

prebuild-install http 404 https://github.com/octalmage/robotjs/releases/download/v0.4.7/robotjs-v0.4.7-electron-v54-win32-ia32.tar.gz

prebuild-install WARN install No prebuilt binaries found (target=1.7.3 runtime=electron arch=ia32 platform=win32)

Expected Behavior

Robotjs should be rebuilt

Current Behavior

error while rebuilding.

Your Environment

  • RobotJS version: 0.4.7
  • Node.js version: 4.5.0
  • npm version: 2.15.9
  • electron version: 1.7.3
  • Operating System: Win 7

All 8 comments

image

image

when I run the command:
npm rebuild --runtime=electron --target=1.7.9 --disturl=https://atom.io/download/atom-shell --abi=57

when I run the command:
E:\nodejs\myfirstapp>electron .

App threw an error during load
Error: Cannot find module 'robotjs'
at Module._resolveFilename (module.js:455:15)
at Function.Module._resolveFilename (C:\Users\ztt\AppData\Roaming\npm\node_modules\electron-prebuilt\dist\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (E:\nodejs\myfirstapp\main.js:6:13)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
^C终止批处理操作吗(Y/N)? y
image

how should I do???

第一,你先npm install robotjs --save
第二,npm run rebuild
第三,electron .

same problem

@majoressense 你什么问题,环境好了嘛,这库我用了很久了,你报什么错,有截图可以看嘛

@roy2651 又行了!!没事了已经

Would you mind pasting the full output from npm install? The correct binary should be build if no prebuilt binaries are found.

@roy2651 能帮忙看看https://github.com/octalmage/robotjs/issues/389 这个问题吗?谢谢

This issue has been closed because it has been inactive for > 180 days.
You may reopen this issue if it has been closed in error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MariaDima picture MariaDima  ·  3Comments

hrastnik picture hrastnik  ·  8Comments

ylh888 picture ylh888  ·  3Comments

bradparks picture bradparks  ·  14Comments

lmnyx picture lmnyx  ·  5Comments