BUG记录

39 阅读1分钟

npm create t3-app@latest

BUG

⠋ Boilerplating envVariables...Aborting installation... ReferenceError: crypto is not defined npm ERR! code 1 npm ERR! path D:\Learn\createt3 npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-t3-app

解决方案

Node升级到最新版本,使用管理员权限运行。

使用supabase执行npm run db:push推送数据库卡住

具体原因未知,问题是因为Supabase的官方文档Connect ORM处有一些问题(错误)。

解决方案

DATABASE_URL要使用5432端口的

// DATABASE_URL="postgresql://postgres.boptsgejphpuichuxrxa:<password@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres>" 

DATABASE_URL="postgresql://postgres.boptsgejphpuichuxrxa:<password@aws-0-ap-southeast-1.pooler.supabase.com:5432/postgres>"