yarn dev 报错

ubuntu@VM-4-16-ubuntu:~/koishi-app$ yarn
➤ YN0000: · Yarn 4.1.0
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 364ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 107ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 324ms
➤ YN0000: · Done in 1s 978ms
ubuntu@VM-4-16-ubuntu:~/koishi-app$ yarn dev
/home/ubuntu/koishi-app/node_modules/esbuild-register/dist/node.js:4829
        throw error;
        ^

TypeError: (0 , import_node_module.register) is not a function
    at Object.<anonymous> (/home/ubuntu/koishi-app/node_modules/yml-register/lib/index.cjs:47:33)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Object.newLoader (/home/ubuntu/koishi-app/node_modules/esbuild-register/dist/node.js:2262:9)
    at extensions..js (/home/ubuntu/koishi-app/node_modules/esbuild-register/dist/node.js:4826:24)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at internalRequire (node:internal/modules/cjs/loader:174:19)
    at Module._preloadModules (node:internal/modules/cjs/loader:1431:5)
    at loadPreloadModules (node:internal/process/pre_execution:606:5)

Node.js v18.15.0

package.json

{
  "name": "koishi-app",
  "version": "0.0.0",
  "packageManager": "yarn@4.1.0",
  "private": true,
  "files": [
    ".env",
    "koishi.yml"
  ],
  "license": "AGPL-3.0",
  "workspaces": [
    "external/*",
    "external/*/external/*",
    "external/*/external/*/packages/*",
    "external/*/external/*/plugins/*",
    "external/*/packages/*",
    "external/*/plugins/*",
    "external/satori/adapters/*",
    "external/koishi/plugins/*",
    "external/koishi/plugins/database/*",
    "packages/*",
    "packages/@*/*",
    "plugins/*",
    "plugins/@*/*"
  ],
  "scripts": {
    "new": "koishi-scripts new",
    "setup": "koishi-scripts setup",
    "clone": "koishi-scripts clone",
    "build": "yakumo build",
    "bump": "yakumo version",
    "dep": "yakumo upgrade",
    "pub": "yakumo publish",
    "dev": "cross-env NODE_ENV=development koishi start -r esbuild-register -r yml-register",
    "start": "koishi start"
  },
  "devDependencies": {
    "@koishijs/client": "^5.27.9",
    "@koishijs/plugin-hmr": "^1.2.8",
    "@koishijs/scripts": "^4.5.2",
    "@types/node": "^20.10.2",
    "@types/react": "^18.2.48",
    "cross-env": "^7.0.3",
    "esbuild": "^0.18.20",
    "esbuild-register": "npm:@shigma/esbuild-register@^1.1.1",
    "tsx": "^4.7.0",
    "typescript": "^5.3.2",
    "yakumo": "^1.0.0-beta.6",
    "yakumo-esbuild": "^1.0.0-beta.2",
    "yakumo-tsc": "^1.0.0-beta.3",
    "yml-register": "^1.1.0"
  },
  "dependencies": {
    "@koishijs/plugin-actions": "^0.0.2",
    "@koishijs/plugin-adapter-discord": "^4.2.2",
    "@koishijs/plugin-adapter-kook": "^4.4.0",
    "@koishijs/plugin-adapter-lark": "3.4.0-alpha.2",
    "@koishijs/plugin-adapter-qq": "^4.4.3",
    "@koishijs/plugin-adapter-satori": "^1.0.8",
    "@koishijs/plugin-adapter-telegram": "^4.3.0",
    "@koishijs/plugin-admin": "^2.0.0-beta.4",
    "@koishijs/plugin-analytics": "^2.0.6",
    "@koishijs/plugin-auth": "^4.1.6",
    "@koishijs/plugin-bind": "^1.5.1",
    "@koishijs/plugin-commands": "^3.5.1",
    "@koishijs/plugin-config": "^2.8.4",
    "@koishijs/plugin-console": "^5.27.9",
    "@koishijs/plugin-database-postgres": "2.0.0-alpha.0",
    "@koishijs/plugin-database-sqlite": "^4.0.0-alpha.0",
    "@koishijs/plugin-explorer": "^1.5.1",
    "@koishijs/plugin-help": "^2.4.3",
    "@koishijs/plugin-insight": "^3.5.1",
    "@koishijs/plugin-inspect": "^1.1.4",
    "@koishijs/plugin-locales": "^2.5.3",
    "@koishijs/plugin-logger": "^2.6.7",
    "@koishijs/plugin-market": "^2.11.1",
    "@koishijs/plugin-notifier": "^1.2.0",
    "@koishijs/plugin-oobe": "^0.0.2",
    "@koishijs/plugin-proxy-agent": "^0.1.4",
    "@koishijs/plugin-sandbox": "^3.2.4",
    "@koishijs/plugin-server": "^3.1.7",
    "@koishijs/plugin-server-satori": "^2.4.2",
    "@koishijs/plugin-server-temp": "^1.2.1",
    "@koishijs/plugin-status": "^7.4.10",
    "koishi": "4.17.0-beta.4",
    "koishi-plugin-android": "^0.0.1",
    "koishi-plugin-assets-local": "^3.2.1",
    "koishi-plugin-dataview": "^2.6.1",
    "koishi-plugin-desktop": "^1.0.0",
    "koishi-plugin-learnertracker": "1.1.0",
    "koishi-plugin-puppeteer": "^3.7.3",
    "koishi-plugin-rate-limit": "^2.0.1",
    "koishi-plugin-telemetry": "^0.0.2",
    "koishi-plugin-theme-vanilla": "^1.0.6"
  }
}


System:
OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 (Jammy Jellyfish)
CPU: (4) x64 Intel(R) Xeon(R) Gold 6133 CPU @ 2.50GHz

Binaries:
Node: 18.15.0
Yarn: 4.1.0

Koishi:
Core: 4.17.0-beta.4
Console: 5.27.9

3 个赞

你的问题有点多欸

2 个赞

是这样的 ,我也不想的 :sob:

3 个赞

你没有更新

4 个赞