yarn create koishi 正常,然后yarn start正常,于是我想进行开发,使用yarn setup koishi-plugin-bf1 时直接报错,下面时全部的日志
PS L:> yarn create koishi
yarn create v1.22.19
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
[4/4] Building fresh packages…
success Installed “create-koishi@6.2.0” with binaries:
- create-koishi
[##########################] 26/26
Create Koishi v6.2.0
√ Project name: … koishi-plugin-bf1
Scaffolding project in koishi-plugin-bf1 …
Done.
√ Initialize Git for version control? … no
√ Install and start it now? … no
You can start it later by:
cd koishi-plugin-bf1
yarn
yarn start
Done in 22.19s.
PS L:> cd koishi-plugin-bf1
PS L:\koishi-plugin-bf1> yarn
➤ YN0000: · Yarn 4.0.1
➤ YN0000: ┌ Resolution step
➤ YN0000: ⠙ safer-buffer@npm:>= 2.1.2 < 3.0.➤ YN0000: ⠹ safer-buffer@npm:>= 2.1.2 < 3.0.➤ YN0000: ⠹ has-property-descriptors@npm:^1.➤ YN0085: │ + @koishijs/client@npm:5.19.5, and 550 more.
➤ YN0000: └ Completed in 1s 504ms
➤ YN0000: ┌ Fetch step
➤ YN0000: ⠸ --------------------------------➤ YN0000: ⠸ =-------------------------------➤ YN0000: ⠸ ==------------------------------➤ YN0000: ⠸ ===-----------------------------➤ YN0000: ⠸ ====----------------------------➤ YN0000: ⠸ =====---------------------------➤ YN0000: ⠸ ======--------------------------➤ YN0000: ⠸ =======-------------------------➤ YN0000: ⠸ ========------------------------➤ YN0000: ⠸ =========-----------------------➤ YN0000: ⠸ ==========----------------------➤ YN0000: ⠸ ===========---------------------➤ YN0000: ⠸ ============--------------------➤ YN0000: ⠸ =============-------------------➤ YN0000: ⠸ ==============------------------➤ YN0000: ⠸ ===============-----------------➤ YN0000: ⠸ ================----------------➤ YN0000: ⠼ =================---------------➤ YN0000: ⠼ ==================--------------➤ YN0000: ⠼ ===================-------------➤ YN0000: ⠼ ====================------------➤ YN0000: ⠼ =====================-----------➤ YN0000: ⠼ ======================----------➤ YN0000: ⠼ =======================---------➤ YN0000: ⠼ ========================--------➤ YN0000: ⠼ =========================-------➤ YN0000: ⠼ ==========================------➤ YN0000: ⠼ ===========================-----➤ YN0000: ⠼ ============================----➤ YN0000: ⠼ =============================—➤ YN0000: ⠼ ==============================–➤ YN0000: ⠼ ===============================-➤ YN0000: ⠼ ================================➤ YN0000: ⠼ ================================➤ YN0000: ⠼ ================================➤ YN0000: ⠼ ================================➤ YN0000: ⠼ ================================➤ YN0000: ⠴ ================================➤ YN0000: ⠴ ================================➤ YN0000: ⠴ ================================➤ YN0000: ⠦ ================================➤ YN0000: ⠦ ================================➤ YN0000: ⠧ ================================➤ YN0000: ⠧ ================================➤ YN0000: └ Completed in 0s 421ms
➤ YN0000: ┌ Link step
➤ YN0000: ⠇ --------------------------------➤ YN0000: ⠇ --------------------------------➤ YN0000: ⠏ =-------------------------------➤ YN0000: ⠏ ==------------------------------➤ YN0000: ⠋ ===-----------------------------➤ YN0000: ⠋ ====----------------------------➤ YN0000: ⠋ =====---------------------------➤ YN0000: ⠙ =====---------------------------➤ YN0000: ⠙ ======--------------------------➤ YN0000: ⠙ =======-------------------------➤ YN0000: ⠹ ========------------------------➤ YN0000: ⠹ =========-----------------------➤ YN0000: ⠹ ==========----------------------➤ YN0000: ⠸ ===========---------------------➤ YN0000: ⠸ ============--------------------➤ YN0000: ⠼ =============-------------------➤ YN0000: ⠼ =============-------------------➤ YN0000: ⠴ =============-------------------➤ YN0000: ⠦ =============-------------------➤ YN0000: ⠦ =============-------------------➤ YN0000: ⠧ ==============------------------➤ YN0000: ⠧ ===============-----------------➤ YN0000: ⠇ ================----------------➤ YN0000: ⠇ =================---------------➤ YN0000: ⠇ ==================--------------➤ YN0000: ⠏ ===================-------------➤ YN0000: ⠏ ====================------------➤ YN0000: ⠏ =====================-----------➤ YN0000: ⠋ ======================----------➤ YN0000: ⠋ =======================---------➤ YN0000: ⠋ ========================--------➤ YN0000: ⠋ =========================-------➤ YN0000: ⠋ ==========================------➤ YN0000: ⠙ ===========================-----➤ YN0000: ⠙ ============================----➤ YN0000: ⠙ =============================—➤ YN0000: ⠙ ==============================–➤ YN0000: ⠙ ===============================-➤ YN0000: ⠹ ================================➤ YN0000: ⠹ ================================➤ YN0000: ⠹ ================================➤ YN0000: ⠹ ================================➤ YN0000: ⠹ ================================➤ YN0000: ⠹ ================================➤ YN0000: ⠸ ================================➤ YN0000: ⠸ ================================➤ YN0000: ⠼ ================================➤ YN0000: ⠼ ================================➤ YN0000: ⠴ ================================➤ YN0000: ⠴ ================================➤ YN0000: ⠦ ================================➤ YN0000: ⠦ ================================➤ YN0000: ⠧ ================================➤ YN0000: ⠧ ================================➤ YN0000: ⠇ ================================➤ YN0000: ⠇ ================================➤ YN0000: ⠏ ================================➤ YN0000: ⠏ ================================➤ YN0000: ⠋ ================================➤ YN0000: ⠋ ================================➤ YN0000: ⠙ ================================➤ YN0000: ⠙ ================================➤ YN0000: ⠹ ================================➤ YN0000: ⠹ ================================➤ YN0000: ⠸ ================================➤ YN0007: │ esbuild@npm:0.18.20 must be built because it never has been before or the last one failed
➤ YN0007: │ vue-demi@npm:0.14.6 [027f0] must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 3s 853ms
➤ YN0000: · Done in 5s 852ms
PS L:\koishi-plugin-bf1> yarn start
2023-11-25 16:21:05 [I] app Koishi/4.15.6
2023-11-25 16:21:05 [I] loader apply plugin group:entry
2023-11-25 16:21:05 [I] loader apply plugin group:basic
2023-11-25 16:21:05 [I] loader apply plugin commands
2023-11-25 16:21:05 [I] loader apply plugin help
2023-11-25 16:21:05 [I] loader apply plugin locales
2023-11-25 16:21:05 [I] loader apply plugin rate-limit
2023-11-25 16:21:05 [I] loader apply plugin telemetry
2023-11-25 16:21:05 [I] loader apply plugin group:console
2023-11-25 16:21:05 [I] loader apply plugin actions
2023-11-25 16:21:05 [I] loader apply plugin analytics
2023-11-25 16:21:05 [I] loader apply plugin config
2023-11-25 16:21:05 [I] loader apply plugin console
2023-11-25 16:21:05 [I] loader apply plugin dataview
2023-11-25 16:21:05 [I] loader apply plugin explorer
2023-11-25 16:21:05 [I] loader apply plugin logger
2023-11-25 16:21:05 [I] loader apply plugin insight
2023-11-25 16:21:05 [I] loader apply plugin market
2023-11-25 16:21:05 [I] loader apply plugin oobe
2023-11-25 16:21:05 [I] loader apply plugin sandbox
2023-11-25 16:21:05 [I] loader apply plugin status
2023-11-25 16:21:05 [I] loader apply plugin theme-vanilla
2023-11-25 16:21:05 [I] loader apply plugin group:storage
2023-11-25 16:21:05 [I] loader apply plugin database-sqlite
2023-11-25 16:21:05 [I] loader apply plugin assets-local
2023-11-25 16:21:05 [I] loader apply plugin group:adapter
2023-11-25 16:21:05 [I] assets missing config “selfUrl”, fallback to “file:” scheme
2023-11-25 16:21:05 [I] router server listening at http://127.0.0.1:5140
2023-11-25 16:21:05 [I] sqlite auto creating table user
2023-11-25 16:21:05 [I] sqlite auto creating table binding
2023-11-25 16:21:05 [I] sqlite auto creating table channel
2023-11-25 16:21:05 [I] sqlite auto creating table stats_daily
2023-11-25 16:21:05 [I] sqlite auto creating table stats_hourly
2023-11-25 16:21:06 [I] sqlite auto creating table stats_longterm
2023-11-25 16:21:10 [I] app terminated by SIGINT
^C
PS L:\koishi-plugin-bf1> yarn setup bf1
√ description: …
Internal Error: Duplicate workspace name koishi-plugin-bf1: L:\koishi-plugin-bf1\external\bf1 conflicts with L:\koishi-plugin-bf1
at St.addWorkspace (L:\koishi-plugin-bf1.yarn\releases\yarn-4.0.1.cjs:210:2045)
at L:\koishi-plugin-bf1.yarn\releases\yarn-4.0.1.cjs:210:1842
node:internal/errors:865
const err = new Error(message);
^
Error: Command failed: yarn
at checkExecSyncError (node:child_process:887:11)
at execSync (node:child_process:959:15)
at Initiator.start (L:\koishi-plugin-bf1\node_modules@koishijs\scripts\lib\setup.js:37:38) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 6372,
stdout: null,
stderr: null
}
Node.js v20.5.1