Description of the problem (please keep it simple and short):
I’m trying to install and use the Supabase CLI via Replit and getting errors no matter what I try.
Explain what you were trying to do:
Each time I try to invoke the CLI, I am greeted with the following error:
> yarn add supabase && yarn run supabase
/home/runner/RewardingMindlessBackup/node_modules/.bin/supabase: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/runner/RewardingMindlessBackup/node_modules/.bin/supabase)
/home/runner/RewardingMindlessBackup/node_modules/.bin/supabase: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/runner/RewardingMindlessBackup/node_modules/.bin/supabase)
My replit.nix
file:
{ pkgs }: {
deps = [
pkgs.nodejs-18_x
pkgs.nodePackages.typescript-language-server
pkgs.yarn
pkgs.replitPackages.jest
# I added these based off of other forum suggestions to no avail
pkgs.glibc
pkgs.coreutils
pkgs.clang_12
pkgs.ccls
pkgs.gdb
pkgs.gnumake
pkgs.git
];
}
I’ve tried with three different templates:
- https://replit.com/@replit/Nodejs?v=1
- https://replit.com/@replit/Deno?v=1
- https://replit.com/@Supabase/Supabasejs-Database?v=1
I’ve also tried adding the pkgs.supabase-cli
Nix package, but that causes different errors:
Detected change in environment, reloading shell...
nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
copied source '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/data/misc/tzdata/tzdata-setup-hook.sh' -> '/nix/store/3q9vpdf0bqlbqr3s867nisz8phx4c9kb-tzdata-setup-hook.sh'
instantiated 'tzdata2022f.tar.gz' -> '/nix/store/p04w1xzq4h90yj9075f8j09k84isrkkh-tzdata2022f.tar.gz.drv'
instantiated 'tzcode2022f.tar.gz' -> '/nix/store/98gqjya2r5a3c8b559vnbns3c5h6bcfy-tzcode2022f.tar.gz.drv'
instantiated 'tzdata-2022f' -> '/nix/store/5yajl4zbl5sfhlqdmgw6lx9f7gaz9r0r-tzdata-2022f.drv'
copied source '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/development/interpreters/python/cpython/mimetypes.patch' -> '/nix/store/lpfs02z2i2hamz9f50p4bz6v0fs0600j-mimetypes.patch'
copied source '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/development/interpreters/python/sitecustomize.py' -> '/nix/store/kclys2xfrg0zjmpa37gyp33nyg1c7j0q-sitecustomize.py'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/data/misc/mailcap/default.nix'
instantiated 'mailcap-2.1.53.tar.xz' -> '/nix/store/1sl3blsf20fdls81kg8cfiqlfb4rbifv-mailcap-2.1.53.tar.xz.drv'
instantiated 'mailcap-2.1.53' -> '/nix/store/kiay4l63r07m0z1f3kwhlyw159cjy2df-mailcap-2.1.53.drv'
instantiated 'python-setup-hook.sh' -> '/nix/store/pnk6q6z0019w8xlf730axh1vzqwzqgd4-python-setup-hook.sh.drv'
instantiated 'Python-3.10.8.tar.xz' -> '/nix/store/6m0bpccyf8gasvs6m2iw0vdfkci5i9vb-Python-3.10.8.tar.xz.drv'
instantiated 'python3-3.10.8' -> '/nix/store/kxfzn11kf6nh0igzsgfm72zfxj77lsda-python3-3.10.8.drv'
copied source '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/development/web/nodejs/disable-darwin-v8-system-instrumentation.patch' -> '/nix/store/cqn0y2wklslppakf9zwrwm6c139mh9dj-disable-darwin-v8-system-instrumentation.patch'
copied source '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/development/web/nodejs/bypass-darwin-xcrun-node16.patch' -> '/nix/store/z3xpyq84lw3ij13g0g3khcy136da1g7g-bypass-darwin-xcrun-node16.patch'
copied source '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/development/web/nodejs/setup-hook.sh' -> '/nix/store/ay9ps6p97mf12nybf9d4r3nyina81b87-setup-hook.sh'
instantiated 'node-v16.18.1.tar.xz' -> '/nix/store/c374bm8n4nw4an5kqf46ldsyfr8k4wwm-node-v16.18.1.tar.xz.drv'
instantiated 'nodejs-16.18.1' -> '/nix/store/5fbfpbzbzs4pgirnx8nz5i8s93ydva35-nodejs-16.18.1.drv'
error: attribute 'supabase-cli' missing, at /home/runner/GiganticAdmiredMineral/replit.nix:6:9
What areas or features are involved?
Replit shell with Nix.