Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install robotjs #418

Closed
lffg opened this issue Sep 15, 2018 · 7 comments
Closed

Can't install robotjs #418

lffg opened this issue Sep 15, 2018 · 7 comments

Comments

@lffg
Copy link

lffg commented Sep 15, 2018

Hi,

I'm trying to install the robotjs, but I could not, after trying several times on my Windows 10 computer.
I also think that it's important to mention that I have already installed Python version 2.7.

The error in CMD:

> [email protected] install C:\Users\luizf\Desktop\proj\node_modules\robotjs
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=8.11.1 runtime=node arch=x64 platform=win32)

C:\Users\luizf\Desktop\proj\node_modules\robotjs>if not defined npm_config_node_gyp (node "C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Traceback (most recent call last):
  File "C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 16, in <module>
    sys.exit(gyp.script_main())
  File "C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 545, in script_main
    return main(sys.argv[1:])
  File "C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 538, in main
    return gyp_main(args)
  File "C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 514, in gyp_main
    options.duplicate_basename_check)
  File "C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 98, in Load
    generator.CalculateVariables(default_variables, params)
  File "C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1916, in CalculateVariables
    generator_flags.get('msvs_version', 'auto'))
  File "C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py", line 434, in SelectVisualStudioVersion
    versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
KeyError: '2017'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\luizf\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:345:16)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\luizf\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\luizf\Desktop\proj\node_modules\robotjs
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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\luizf\AppData\Roaming\npm-cache\_logs\2018-09-15T03_07_38_201Z-debug.log

The installation log can be found below:
https://gist.github.com/lffg/2ad3575f919210c08ed9d661fca86840


Please comment if you need any more information.

Thanks in advance.

@emko
Copy link

emko commented Sep 16, 2018

anyone know how to get this working on node 10?

@Deltatiger
Copy link
Collaborator

@lffg Could you try installing along with windows-build-tools from npm?
Try installing it globally (npm install -g windows-build-tools) and check.

@lffg
Copy link
Author

lffg commented Sep 19, 2018

Hi, thanks for the reply.

I already tried this, but the error continues as I showed above.

Cheers,

@Deltatiger
Copy link
Collaborator

@lffg By any chance do you have VS 2017 installed?

This issue has similar / same error stack as yours.
nodejs/node-gyp#1144

@lffg
Copy link
Author

lffg commented Sep 19, 2018

Yes, I have it.

@lffg lffg closed this as completed Sep 21, 2018
@IndyVC
Copy link

IndyVC commented May 18, 2020

Why did u close this issue? How did you solve it?

1 similar comment
@rafaelconcept
Copy link

rafaelconcept commented Jun 16, 2020

Why did u close this issue? How did you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants