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

nodegui installation: missing file "@nodegui\qode\binaries\node.lib" #888

Closed
RuStrannik opened this issue Nov 1, 2021 · 5 comments
Closed

Comments

@RuStrannik
Copy link

RuStrannik commented Nov 1, 2021

Bug description:
Clean installation fails with message:
LINK : fatal error LNK1181: cannot open input file 'E:\gui_test\node_modules\@nodegui\qode\binaries\node.lib' [E:\gui_test\node_modules\@nodegui\nodegui\build\nodegui_core.vcxproj]

To Reproduce:

  1. enter command npm install @nodegui/nodegui
  2. Wait 20 minutes
  3. See error

NOTE: I've checked @nodegui\qode folder and there is actually no such subfolder as binaries at all. I suspect, this might be caused by some npm option, that prevented creation of this folder.

Expected behavior:
Successful installation.

Desktop:

  • OS: Win7x64
  • NodeGUI version: latest (0.40)
  • only VS Build Tools 2019 installed (with lates Windows SDK), MSVS not present

Additional info:
Upon manually creating @nodegui\qode\binaries subfolder and filling it with related content from qode release, compilation and installation finish successfully and everything works properly.

@RuStrannik RuStrannik changed the title nodegui installation: missing "(...)\@nodegui\qode\binaries\node.lib" nodegui installation: missing file "@nodegui\qode\binaries\node.lib" Nov 1, 2021
@OneYellowLemon
Copy link

I am able to reproduce this, placing the @nodegui\qode\binaries subfolder and manually filling it does work.

@croian
Copy link

croian commented Dec 5, 2021

Note for others trying the manual fix: I had to drop the files in after I start the install (and before the file is looked for during install, of course), because the install process moves folders/files around, including the needed ones.

Edit: But then, I run into this issue once I try to actually run some basic hello-world code:

node:internal/modules/cjs/loader:1183
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.
\\?\D:\dev\sandbox\nodegui-hello-world\node_modules\@nodegui\nodegui\build\Release\nodegui_core.node

@OneYellowLemon
Copy link

Can you send the hello world code you used? I had no issues pop up after moving it in for me...

@sedwards2009
Copy link
Collaborator

The recent 0.45.4 release now downloads a prebuilt binary and doesn't compile the C++ code during install. Can you please try again with this new version?

@sedwards2009
Copy link
Collaborator

I got no response. If there is still a problem then a new issue can be opened.

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

4 participants