steelbrain / linter-ui-default

Default UI for the Atom Linter package
MIT License
85 stars 47 forks source link

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

Open zhanwenchen opened 1 year ago

zhanwenchen commented 1 year ago

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 npm@9.5.0 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 urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm ERR! npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm ERR! npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm ERR! npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm ERR! npm WARN deprecated uuid@3.4.0: 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 w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm ERR! npm WARN deprecated request-promise-native@1.0.9: 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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! npm WARN deprecated stable@0.1.8: 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 querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! npm WARN deprecated babel-eslint@7.2.3: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm ERR! npm WARN deprecated core-js@2.6.12: 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 node-gyp@9.3.0
npm ERR! npm ERR! gyp info using node@18.14.1 | 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