"rebuild": "electron-rebuild -f -w better-sqlite3" }, "devDependencies": { "@vitejs/plugin-vue": "^4.5.2", "better-sqlite3": "^9.2.2", "electron": "^28.0.0", "electron-builder": "^24.9.1", "electron-rebuild": "^3.2.9", "typescript": "^5.2.2", "vite": "4.5.1",...
package.json: "scripts": { "rebuild": "electron-rebuild -f -w better-sqlite3" } 然后我在项目根目录执行:pnpm run rebuild我测试执行成功,但是没有任何其他的变化呢: > electron-rebuild -f -w better-sqlite3 ✔ Rebuild Complete 1、请问是否会产生:better_sqlite3.node 文件?2、如果是,请问是会...
command=/opt/homebrew/Cellar/pnpm/7.13.5/libexec/bin/pnpm.cjs rebuild better-sqlite3@7.6.2 workingDir= ELIFECYCLE Command failed with exit code 1. ramit-mitra commentedon Apr 11, 2023 ramit-mitraon Apr 11, 2023 Hey all, just wanted to add here that am facing the same issue when...
2、不会产生在根目录,会产生在依赖的目录,一般是 node_modules/better-sqlite3/build/Release/better_sqlite3.node
-disturl=https://electronjs.org/headers',// ],// {// cwd: better_sqlite3_root,// stdio: 'inherit',// },// );// cp.on('exit', code => {// if (code === 0) {// console.log('Rebuild better-sqlite3 success.');// }// process.exit(code);// });constcmd=['win32'?