cli icon indicating copy to clipboard operation
cli copied to clipboard

encountering during pnpx supabase start

Open saleemstrugbits opened this issue 8 months ago • 0 comments

Describe the bug that the package.json inside the container is malformed or using unsupported fields, and Node.js 22 is throwing an error when trying to parse it.

bug admin@DESKTOP-PE3F9RV MINGW64 ~/Downloads/rocket-cloud-portal-main/rocket-cloud-portal-main $ pnpx supabase start --debug  WARN  The "workspaces" field in package.json is not supported by pnpm. Create a "pnpm-workspace.yaml" file instead. Supabase CLI 2.24.3 2025/06/11 18:04:13 PG Send: {"Type":"StartupMessage","ProtocolVersion":196608,"Parameters":{"database":"postgres","user":"postgres"}} 2025/06/11 18:04:13 PG Recv: {"Type":"AuthenticationSASL","AuthMechanisms":["SCRAM-SHA-256"]} 2025/06/11 18:04:13 PG Send: {"Type":"SASLInitialResponse","AuthMechanism":"SCRAM-SHA-256","Data":"n,,n=,r=Ok3JoY2YZyTVeIcFbj1VjMg+"} 2025/06/11 18:04:13 PG Recv: {"Type":"AuthenticationSASLContinue","Data":"r=Ok3JoY2YZyTVeIcFbj1VjMg+m0ceDNkqDYu2ftvJM+dlJgc7,s=z4QQ354iA5JXyL92pF/veA==,i=4096"} 2025/06/11 18:04:13 PG Send: {"Type":"SASLResponse","Data":"c=biws,r=Ok3JoY2YZyTVeIcFbj1VjMg+m0ceDNkqDYu2ftvJM+dlJgc7,p=aTOB0FIJPLcJVr2m82G4l4zu7k9XAGfXScyt8O6kLIs="} 2025/06/11 18:04:13 PG Recv: {"Type":"AuthenticationSASLFinal","Data":"v=nHXTcSq3fAkNrjiZ7qY3WS/yASrYeL59haNEDbsGq3Y="} 2025/06/11 18:04:13 PG Recv: {"Type":"AuthenticationOK"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"application_name","Value":""} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"client_encoding","Value":"UTF8"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"DateStyle","Value":"ISO, MDY"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"default_transaction_read_only","Value":"off"}
2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"in_hot_standby","Value":"off"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"integer_datetimes","Value":"on"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"IntervalStyle","Value":"postgres"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"is_superuser","Value":"off"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"server_encoding","Value":"UTF8"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"server_version","Value":"15.8"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"session_authorization","Value":"postgres"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"standard_conforming_strings","Value":"on"} 2025/06/11 18:04:13 PG Recv: {"Type":"ParameterStatus","Name":"TimeZone","Value":"UTC"} 2025/06/11 18:04:13 PG Recv: {"Type":"BackendKeyData","ProcessID":209,"SecretKey":621179221} 2025/06/11 18:04:13 PG Recv: {"Type":"ReadyForQuery","TxStatus":"I"}

  • ulimit -ning schema... + '[' '!' -z '' ']' + export ERL_CRASH_DUMP=/tmp/erl_crash.dump + ERL_CRASH_DUMP=/tmp/erl_crash.dump + '[' false = true ']' + echo 'Running migrations'
    + sudo -E -u nobody /app/bin/migrate

  • '[' true = true ']'... + echo 'Seeding selfhosted Realtime' + sudo -E -u nobody /app/bin/realtime eval 'Realtime.Release.seeds(Realtime.Repo)' [os_mon] cpu supervisor port (cpu_sup): Erlang has closed [os_mon] memory supervisor port (memsup): Erlang has closed

  • echo 'Starting Realtime' + ulimit -n + exec /app/bin/realtime eval '{:ok, _} = Application.ensure_all_started(:realtime) {:ok, _} = Realtime.Tenants.health_check("realtime-dev")' [os_mon] cpu supervisor port (cpu_sup): Erlang has closed [os_mon] memory supervisor port (memsup): Erlang has closed node:internal/modules/run_main:92 const type = getNearestParentPackageJSONType(mainPath); ^

                                                                                                        Error: Invalid package config /app/package.json.      
                                                                                                                                                            at shouldUseESMLoader (node:internal/modules/run_main:92:16)
                                                            at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:20)
                                                                                                                                                      at node:internal/main/run_main_module:36:49 {
                                     code: 'ERR_INVALID_PACKAGE_CONFIG'
                                                                       }
    
                                                                        Node.js v22.16.0
    

2025/06/11 18:04:25 PG Send: {"Type":"Terminate"} Stopping containers... Pruned containers: [616c6eb690ce5d4d727cd699514554356fb888ef455686ff3becb9b1cb03da3b] Pruned volumes: [supabase_db_ross-rocket supabase_config_ross-rocket] Pruned network: [supabase_network_ross-rocket] error running container: exit 1

admin@DESKTOP-PE3F9RV MINGW64 ~/Downloads/rocket-cloud-portal-main/rocket-cloud-portal-main

saleemstrugbits avatar Jun 11 '25 13:06 saleemstrugbits