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

lmza-native error #79

Open
Alerinos opened this issue Apr 9, 2019 · 4 comments
Open

lmza-native error #79

Alerinos opened this issue Apr 9, 2019 · 4 comments

Comments

@Alerinos
Copy link

Alerinos commented Apr 9, 2019

C:\Launcher\app>node -v
v11.7.0

C:\Launcher\app>npm -v
6.5.0

Install:

C:\Launcher\app>npm i lzma-native

> lzma-native@4.0.3 install C:\Launcher\app\node_modules\lzma-native
> node-pre-gyp install --fallback-to-build && rimraf build

node-pre-gyp WARN Using request for node-pre-gyp https download
[lzma-native] Success: "C:\Launcher\app\node_modules\lzma-native\binding-v4.0.3-node-v67-win32-x64\lzma_native.node" is installed via remote
+ lzma-native@4.0.3
updated 1 package and audited 609 packages in 2.858s
found 0 vulnerabilities

Console:

const lzma = require('lzma-native');

(unknown) Uncaught Error: Cannot find module 'C:\Launcher\app\node_modules\lzma-native\binding-v4.0.3-node-webkit-v0.37.3-win32-x64\lzma_native.node'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:680:15)
    at Function.Module._load (internal/modules/cjs/loader.js:600:25)
    at Module.require (internal/modules/cjs/loader.js:736:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at C:\Launcher\app\node_modules\lzma-native\index.js:13:14
    at Object.<anonymous> (C:\Launcher\app\node_modules\lzma-native\index.js:597:3)
    at Module._compile (internal/modules/cjs/loader.js:830:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:847:10)
    at Module.load (internal/modules/cjs/loader.js:697:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:637:12)
    at Function.Module._load (internal/modules/cjs/loader.js:629:3)
    at Module.require (internal/modules/cjs/loader.js:736:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at self.require (<anonymous>:11:26)
    at self.require (<anonymous>:11:26)
    at <anonymous>:1:14
HughxDev added a commit to HughxDev/hughs-vlog-api that referenced this issue Apr 23, 2019
@addaleax
Copy link
Owner

addaleax commented Jan 2, 2020

@Alerinos I’m not sure if this is still relevant for you, but for Node.js embedders like node-webkit or electron you’ll need to recompile any native addons you’re using, unfortunately.

@jniles
Copy link

jniles commented Jan 11, 2020

@addaleax, I've also been running into this. Would it be possible to use something like prebuild to download precompiled Windows 10 binaries on Linux/Docker?

@addaleax
Copy link
Owner

@jniles This project does provide prebuilt binaries. However, that doesn’t affect the fact Electron or similar environments still have special needs when it comes to native addons on Windows (due to the fact that the main .exe file has a different name).

@jniles
Copy link

jniles commented Jan 14, 2020

Ah, that makes sense. Thanks for clarifying and your help.

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

No branches or pull requests

3 participants