ghmcadams / redis-utils Goto Github PK
View Code? Open in Web Editor NEWSimple command line tools for Redis, including copy, delete, list, count
License: MIT License
Simple command line tools for Redis, including copy, delete, list, count
License: MIT License
Sadly hiredis is deprecated in favor of using node redis, maybe it's possible to make and upgrade to redis-utils
Hi, I'm getting the following errors during install. What am I doing wrong?
`
✘ sudo npm install redis-utils-cli -g
npm ERR! code 1
npm ERR! path /usr/lib/node_modules/redis-utils-cli/node_modules/hiredis
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/usr/lib/node_modules/redis-utils-cli/node_modules/hiredis/build'
npm ERR! CC(target) Release/obj.target/hiredis-c/deps/hiredis/sds.o
npm ERR! CC(target) Release/obj.target/hiredis-c/deps/hiredis/read.o
npm ERR! AR(target) Release/obj.target/deps/hiredis-c.a
npm ERR! COPY Release/hiredis-c.a
npm ERR! CXX(target) Release/obj.target/hiredis/src/hiredis.o
npm ERR! CXX(target) Release/obj.target/hiredis/src/reader.o
npm ERR! make: Leaving directory '/usr/lib/node_modules/redis-utils-cli/node_modules/hiredis/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.6.12 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/lib/node_modules/redis-utils-cli/node_modules/hiredis/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/root/.cache/node-gyp/14.17.2/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/14.17.2',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/14.17.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/lib/node_modules/redis-utils-cli/node_modules/hiredis',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/reader.cc: In function ‘void* tryParentize(const redisReadTask*, const v8::Localv8::Value&)’:
npm ERR! ../src/reader.cc:21:32: error: no matching function for call to ‘v8::Array::Set(const int&, const v8::Localv8::Value&)’
npm ERR! larray->Set(task->idx,v);
npm ERR! ^
npm ERR! In file included from /root/.cache/node-gyp/14.17.2/include/node/node.h:67:0,
npm ERR! from ../../nan/nan.h:58,
npm ERR! from ../src/reader.h:1,
npm ERR! from ../src/reader.cc:3:
npm ERR! /root/.cache/node-gyp/14.17.2/include/node/v8.h:3670:37: note: candidate: v8::Maybe v8::Object::Set(v8::Localv8::Context, v8::Localv8::Value, v8::Localv8::Value)
npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local context,
npm ERR! ^~~
npm ERR! /root/.cache/node-gyp/14.17.2/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
npm ERR! /root/.cache/node-gyp/14.17.2/include/node/v8.h:3673:37: note: candidate: v8::Maybe v8::Object::Set(v8::Localv8::Context, uint32_t, v8::Localv8::Value)
npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
npm ERR! ^~~
npm ERR! /root/.cache/node-gyp/14.17.2/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
npm ERR! make: *** [hiredis.target.mk:119: Release/obj.target/hiredis/src/reader.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make
failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:375:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Linux 5.3.18-lp152.87-default
npm ERR! gyp ERR! command "/usr/bin/node14" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/lib/node_modules/redis-utils-cli/node_modules/hiredis
npm ERR! gyp ERR! node -v v14.17.2
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-10-07T13_09_41_073Z-debug.log
`
The -V --version option does not report the correct version but reports the hardcoded value in
Line 14 in eba3c7c
Thanks for the handy util! Are TTLs supposed to be migrated using this tool for keys that expire?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.