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

lzma-native version is outdated and broken for global installs. #124

Open
voidf1sh opened this issue Aug 25, 2021 · 1 comment · May be fixed by #129
Open

lzma-native version is outdated and broken for global installs. #124

voidf1sh opened this issue Aug 25, 2021 · 1 comment · May be fixed by #129

Comments

@voidf1sh
Copy link

Installing the module in WSL Ubuntu globally. The version of lzma-native required by this package (4.0.6) is severely out of date (current is 8.0.1), this out of date version of lzma-native has not been updated to use the new version of node-pre-gyp (@mapbox/node-pre-gyp), this results in a failed global install for CLI usage.

$ sudo npm install --global speedtest-net
npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
/usr/local/bin/speedtest-net -> /usr/local/lib/node_modules/speedtest-net/bin/index.js

> lzma-native@4.0.6 install /usr/local/lib/node_modules/speedtest-net/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
node-pre-gyp WARN Pre-built binaries not installable for lzma-native@4.0.6 and node@10.19.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native/binding-v4.0.6-node-v64-linux-x64'
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native/build'
gyp ERR! System Linux 4.4.0-19041-Microsoft
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native/binding-v4.0.6-node-v64-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native/binding-v4.0.6-node-v64-linux-x64" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
gyp ERR! cwd /usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/bin/node-gyp configure --fallback-to-build --module=/usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native/binding-v4.0.6-node-v64-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native/binding-v4.0.6-node-v64-linux-x64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/speedtest-net/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 4.4.0-19041-Microsoft
node-pre-gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/speedtest-net/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native
node-pre-gyp ERR! node -v v10.19.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/bin/node-gyp configure --fallback-to-build --module=/usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native/binding-v4.0.6-node-v64-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/usr/local/lib/node_modules/speedtest-net/node_modules/lzma-native/binding-v4.0.6-node-v64-linux-x64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lzma-native@4.0.6 install: `node-pre-gyp install --fallback-to-build && rimraf build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lzma-native@4.0.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@RoninActual
Copy link

RoninActual commented Nov 15, 2021

duplicate #114

@kitsunekyo kitsunekyo linked a pull request Feb 11, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants