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

Unable to Install with Node v18. Successful with v16 #668

Open
zhanwenchen opened this issue Feb 20, 2023 · 0 comments
Open

Unable to Install with Node v18. Successful with v16 #668

zhanwenchen opened this issue Feb 20, 2023 · 0 comments

Comments

@zhanwenchen
Copy link

zhanwenchen commented Feb 20, 2023

Fyi, I was able to install this by downgrading Node from v18 to v16. This is the node-gyp error from installing this with Node v18 LTS:

npm i https://github.com/steelbrain/linter-ui-default.git
npm notice 
npm notice New minor version of npm available! 9.3.1 -> 9.5.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.5.0
npm notice Run npm install -g [email protected] to update!
npm notice 
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/zhanwen/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm ERR! npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm ERR! npm WARN deprecated [email protected]: this library is no longer supported
npm ERR! npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm ERR! npm WARN deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
npm ERR! npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm ERR! npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm ERR! npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm ERR! npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /home/zhanwen/.npm/_cacache/tmp/git-clonegHEPVp/node_modules/lmdb-store
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c node-gyp-build
npm ERR! npm ERR! make: Entering directory '/home/zhanwen/.npm/_cacache/tmp/git-clonegHEPVp/node_modules/lmdb-store/build'
npm ERR! npm ERR!   CXX(target) Release/obj.target/lmdb/src/node-lmdb.o
npm ERR! npm ERR!   CC(target) Release/obj.target/lmdb/dependencies/lmdb/libraries/liblmdb/midl.o
npm ERR! npm ERR!   CC(target) Release/obj.target/lmdb/dependencies/lmdb/libraries/liblmdb/chacha8.o
npm ERR! npm ERR!   CC(target) Release/obj.target/lmdb/dependencies/lz4/lib/lz4.o
npm ERR! npm ERR!   CXX(target) Release/obj.target/lmdb/src/env.o
npm ERR! npm ERR!   CXX(target) Release/obj.target/lmdb/src/compression.o
npm ERR! npm ERR!   CXX(target) Release/obj.target/lmdb/src/ordered-binary.o
npm ERR! npm ERR! make: Leaving directory '/home/zhanwen/.npm/_cacache/tmp/git-clonegHEPVp/node_modules/lmdb-store/build'
npm ERR! npm ERR! gyp info it worked if it ends with ok
npm ERR! npm ERR! gyp info using [email protected]
npm ERR! npm ERR! gyp info using [email protected] | linux | x64
npm ERR! npm ERR! gyp info find Python using Python version 3.10.9 found at "/home/zhanwen/miniconda3/bin/python3"
npm ERR! npm ERR! gyp http GET https://nodejs.org/download/release/v18.14.1/node-v18.14.1-headers.tar.gz
npm ERR! npm ERR! gyp http 200 https://nodejs.org/download/release/v18.14.1/node-v18.14.1-headers.tar.gz
npm ERR! npm ERR! gyp http GET https://nodejs.org/download/release/v18.14.1/SHASUMS256.txt
npm ERR! npm ERR! gyp http 200 https://nodejs.org/download/release/v18.14.1/SHASUMS256.txt
npm ERR! npm ERR! gyp info spawn /home/zhanwen/miniconda3/bin/python3
npm ERR! npm ERR! gyp info spawn args [
npm ERR! npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! npm ERR! gyp info spawn args   '-f',
npm ERR! npm ERR! gyp info spawn args   'make',
npm ERR! npm ERR! gyp info spawn args   '-I',
npm ERR! npm ERR! gyp info spawn args   '/home/zhanwen/.npm/_cacache/tmp/git-clonegHEPVp/node_modules/lmdb-store/build/config.gypi',
npm ERR! npm ERR! gyp info spawn args   '-I',
npm ERR! npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! npm ERR! gyp info spawn args   '-I',
npm ERR! npm ERR! gyp info spawn args   '/home/zhanwen/.cache/node-gyp/18.14.1/include/node/common.gypi',
npm ERR! npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/zhanwen/.cache/node-gyp/18.14.1',
npm ERR! npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/zhanwen/.cache/node-gyp/18.14.1/<(target_arch)/node.lib',
npm ERR! npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/zhanwen/.npm/_cacache/tmp/git-clonegHEPVp/node_modules/lmdb-store',
npm ERR! npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! npm ERR! gyp info spawn args   '--depth=.',
npm ERR! npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! npm ERR! gyp info spawn args   '--generator-output',
npm ERR! npm ERR! gyp info spawn args   'build',
npm ERR! npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! npm ERR! gyp info spawn args ]
npm ERR! npm ERR! gyp info spawn make
npm ERR! npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! npm ERR! ../src/ordered-binary.cpp: In function ‘size_t valueToKey(const v8::Local<v8::Value>&, uint8_t*, size_t, bool, bool)’:
npm ERR! npm ERR! ../src/ordered-binary.cpp:138:92: error: no matching function for call to ‘v8::Symbol::Description()’
npm ERR! npm ERR!   138 |         Local<String> string = Local<String>::Cast(Local<Symbol>::Cast(jsKey)->Description());
npm ERR! npm ERR!       |                                                                                            ^
npm ERR! npm ERR! In file included from /home/zhanwen/.cache/node-gyp/18.14.1/include/node/v8-object.h:11,
npm ERR! npm ERR!                  from /home/zhanwen/.cache/node-gyp/18.14.1/include/node/v8-array-buffer.h:13,
npm ERR! npm ERR!                  from /home/zhanwen/.cache/node-gyp/18.14.1/include/node/v8.h:24,
npm ERR! npm ERR!                  from ../src/node-lmdb.h:29,
npm ERR! npm ERR!                  from ../src/ordered-binary.cpp:1:
npm ERR! npm ERR! /home/zhanwen/.cache/node-gyp/18.14.1/include/node/v8-primitive.h:588:16: note: candidate: ‘v8::Local<v8::Value> v8::Symbol::Description(v8::Isolate*) const’
npm ERR! npm ERR!   588 |   Local<Value> Description(Isolate* isolate) const;
npm ERR! npm ERR!       |                ^~~~~~~~~~~
npm ERR! npm ERR! /home/zhanwen/.cache/node-gyp/18.14.1/include/node/v8-primitive.h:588:16: note:   candidate expects 1 argument, 0 provided
npm ERR! npm ERR! make: *** [lmdb.target.mk:150: Release/obj.target/lmdb/src/ordered-binary.o] Error 1
npm ERR! npm ERR! gyp ERR! build error 
npm ERR! npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! npm ERR! gyp ERR! System Linux 5.15.0-60-generic
npm ERR! npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! npm ERR! gyp ERR! cwd /home/zhanwen/.npm/_cacache/tmp/git-clonegHEPVp/node_modules/lmdb-store
npm ERR! npm ERR! gyp ERR! node -v v18.14.1
npm ERR! npm ERR! gyp ERR! node-gyp -v v9.3.0
npm ERR! npm ERR! gyp ERR! not ok
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /home/zhanwen/.npm/_logs/2023-02-20T04_17_57_775Z-debug-0.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/zhanwen/.npm/_logs/2023-02-20T04_17_49_216Z-debug-0.log
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

1 participant