fix: docs and loggers, sqlite3 can't load and cause crash

This commit is contained in:
linonetwo 2023-08-21 20:32:06 +08:00
parent 1ae88d7005
commit 0c27989e9e
3 changed files with 16 additions and 7 deletions

View file

@ -67,15 +67,15 @@ exports.default = async (
// not using pnpm, because after using it, it always causing problem here, causing `Error: spawn /bin/sh ENOENT` in github actions
// it can probably being "working directory didn't exist" in https://github.com/nodejs/node/issues/9644#issuecomment-282060923
// await exec(`pnpm i --shamefully-hoist --prod --ignore-scripts`, { cwd: path.join(cwd, 'node_modules', 'zx'), shell });
await exec(`npm i --legacy-building --production`, {
await exec(`npm i --registry https://registry.npmmirror.com --legacy-building --production`, {
cwd: path.join(cwd, 'node_modules', 'zx'),
shell,
});
await exec(`npm i --legacy-building --production`, {
await exec(`npm i --registry https://registry.npmmirror.com --legacy-building --production`, {
cwd: path.join(cwd, 'node_modules', 'zx', 'node_modules', 'globby'),
shell,
});
await exec(`npm i --legacy-building --production --ignore-scripts`, {
await exec(`npm i --registry https://registry.npmmirror.com --legacy-building --production --ignore-scripts`, {
cwd: path.join(
cwd,
'node_modules',