cli
cli copied to clipboard
Supabase db pull fails - error diffing schema (failed loading package)
Describe the bug
I'm setting up a new local development environment for a currently hosted database. I am following these instructions. When I execute the command supabase db pull at some point I get the following error:
worker boot error: failed to bootstrap runtime: failed to create the graph: Failed loading https://registry.npmjs.org/@pgkit%2fclient for package "@pgkit/client"
0: EOF while parsing a value at line 1 column 0
at file:///index.ts:1:35
Error: main worker boot error
Caused by:
0: worker boot error
1: failed to bootstrap runtime
2: failed to create the graph
3: Failed loading https://registry.npmjs.org/@pgkit%2fclient for package "@pgkit/client"
0: EOF while parsing a value at line 1 column 0
at file:///index.ts:1:35
Here is the full log:
Initialising login role...
Connecting to remote database...
Dumping schema from remote database...
Creating shadow database...
Initialising schema...
Seeding globals from roles.sql...
Applying migration 20251211102530_remote_schema.sql...
Diffing schemas...
error diffing schema: error running container: exit 1:
DEBUG No .npmrc file found
DEBUG Finished config loading.
DEBUG Opening cache /root/.cache/deno/dep_analysis_cache_v2...
DEBUG Opening cache /root/.cache/deno/node_analysis_cache_v2...
DEBUG Opening cache /root/.cache/deno/dep_analysis_cache_v2...
DEBUG Opening cache /root/.cache/deno/node_analysis_cache_v2...
DEBUG FileFetcher::fetch_no_follow_with_options - specifier: file:///index.ts
DEBUG Running npm resolution.
worker boot error: failed to bootstrap runtime: failed to create the graph: Failed loading https://registry.npmjs.org/@pgkit%2fclient for package "@pgkit/client"
0: EOF while parsing a value at line 1 column 0
at file:///index.ts:1:35
Error: main worker boot error
Caused by:
0: worker boot error
1: failed to bootstrap runtime
2: failed to create the graph
3: Failed loading https://registry.npmjs.org/@pgkit%2fclient for package "@pgkit/client"
0: EOF while parsing a value at line 1 column 0
at file:///index.ts:1:35
Expected behavior There should be no error and the operation should succeed.
System information
- Crash ID: 435bd5a25bdb4dbca965bbb394ef7bbe
- Version of OS: [Windows 10]
- Version of CLI: [v2.65.5]
- Version of Docker: [v24.0.2]
- Versions of services:
SERVICE IMAGE | LOCAL | LINKED
------------------------|------------------------|------------
supabase/postgres | 17.4.1.074 | 17.4.1.074
supabase/gotrue | v2.183.0 | v2.183.0
postgrest/postgrest | v13.0.4 | v13.0.4
supabase/realtime | v2.67.2 | -
supabase/storage-api | v1.32.1 | v1.31.1
supabase/edge-runtime | v1.69.28 | -
supabase/studio | 2025.12.01-sha-4ad48b7 | -
supabase/postgres-meta | v0.93.1 | -
supabase/logflare | 1.26.20 | -
supabase/supavisor | 2.7.4 | -
hi @devjeff thanks for reporting 💚
this looks like a docker network issue, the container can't reach npm registry.😢
things to try
- restart docker
- disable vpn if you're using one
- check if you're behind a firewall/proxy
- try switching docker's dns to 8.8.8.8 in settings
Let us know, if the issue still persists!