avatar

sunday

Sunday's Blog

  • 首页
Home nextjs15使用better-sqlite3的连接报错问题
文章

nextjs15使用better-sqlite3的连接报错问题

Posted 2025-05-3 Updated 2025-05- 3
By sunday
0~1 min read

1.出现如下错误

 ⨯ Error: Could not locate the bindings file. Tried:

解决方法
我是使用pnpm包管理器,执行以下操作
首先安装node-gyp
pnpm i node-gyp -D
然后执行
pnpm approve-builds
执行后会出现选项,选择node-gyp即可,然后就可以正常使用better-sqlite3 了

nextjs
nextjs
License:  CC BY 4.0
Share

Further Reading

Jul 1, 2025

nextjs使用three.js写一个3D模型的查看器Viewer

直接上代码 // components/GLBViewer.js "use client"; import { useEffect, useRef, useState } from "react"; import * as THREE from "three"; import { OrbitCon

May 3, 2025

nextjs15使用better-sqlite3的连接报错问题

1.出现如下错误 ⨯ Error: Could not locate the bindings file. Tried: 解决方法 我是使用pnpm包管理器,执行以下操作 首先安装node-gyp pnpm i node-gyp -D 然后执行 pnpm approve-builds 执行后会

Apr 6, 2025

nextjs + clerk + supabase + realtime 实时监听数据库更改

1.开启realtime.messages策略 在supabase的SQL Editor执行以下命令 create policy "Enable all access for authenticated users" on "public"."messages" as PERMISSIVE for

OLDER

nextjs + clerk + supabase + realtime 实时监听数据库更改

NEWER

nextjs使用three.js写一个3D模型的查看器Viewer

Recently Updated

  • 多个github账号在一台电脑上如何使用呢?
  • Google Search Conosle DNS验证域名
  • 申请Google oauth授权验证,并通过验证中心
  • Coze Studio 一键安装工具,马上开始你的AI工作流
  • 解决vscode上python代码无法解析导入

Trending Tags

nginx acme 强制跳转HTTPS nodejs 代理 mac 神器 vue3 工具 docker

Contents

©2025 sunday. Some rights reserved.

Using the Halo theme Chirpy