npm error No workspaces found:
npm error --workspace=koishi-plugin-user-bot-qq
npm error A complete log of this run can be found in: C:\Users\Users\AppData\Local\npm-cache_logs\2024-08-25T19_05_15_878Z-debug-0.log
npm error No workspaces found:
npm error --workspace=koishi-plugin-user-bot-qq
npm error A complete log of this run can be found in: C:\Users\Users\AppData\Local\npm-cache_logs\2024-08-25T19_05_15_878Z-debug-0.log
npm cuòwù kěyǐ zài yǐxià wèizhì zhǎodào cǐ yùnxíng de wánzhěng rìzhì:C:\Users\Users\AppData\Local\npm-cache_logs\2024-08-25T19_05_15_878Z-debug-0.Log
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@10.7.0
2 info using node@v20.15.1
3 silly config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc
4 silly config:load:file:T:\dev\APP.npmrc
5 silly config:load:file:C:\Users\34148.npmrc
6 silly config:load:file:C:\Users\34148\AppData\Roaming\npm\etc\npmrc
7 verbose title npm publish
8 verbose argv “publish” “–workspace” “koishi-plugin-dsanilen-bot-qq” “–access” “public” “–registry” “https://registry.npmjs.org”
9 verbose logfile logs-max:10 dir:C:\Users\34148\AppData\Local\npm-cache_logs\2024-08-25T17_00_37_964Z-
10 verbose logfile C:\Users\34148\AppData\Local\npm-cache_logs\2024-08-25T17_00_37_964Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 verbose stack Error: No workspaces found:
13 verbose stack --workspace=koishi-plugin-dsanilen-bot-qq
13 verbose stack at getWorkspaces (C:\Program Files\nodejs\node_modules\npm\lib\utils\get-workspaces.js:48:11)
13 verbose stack at async Publish.setWorkspaces (C:\Program Files\nodejs\node_modules\npm\lib\base-cmd.js:171:16)
13 verbose stack at async Publish.execWorkspaces (C:\Program Files\nodejs\node_modules\npm\lib\commands\publish.js:159:5)
13 verbose stack at async module.exports (C:\Program Files\nodejs\node_modules\npm\lib\cli\entry.js:74:5)
14 verbose cwd T:\dev\APP
15 verbose Windows_NT 10.0.26120
16 verbose node v20.15.1
17 verbose npm v10.7.0
18 error No workspaces found:
18 error --workspace=koishi-plugin-dsanilen-bot-qq
19 verbose exit 1
20 verbose code 1
21 error A complete log of this run can be found in: C:\Users\34148\AppData\Local\npm-cache_logs\2024-08-25T17_00_37_964Z-debug-0.log
找不到工作区
我知道哇,可是我不知道怎么解决
看看你external文件夹下的结构 还有你执行的什么指令进行发布
执行命令是
npm publish --workspace koishi-plugin-dsanilen-bot-qq --access public --registry https://registry.npmjs.org
但是你的工作区叫 my-qqbot-xxds
不叫 koishi-plugin-my-qqbot-xxds
啊…
芝士日志
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@10.7.0
2 info using node@v20.15.1
3 silly config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc
4 silly config:load:file:T:\dev\APP.npmrc
5 silly config:load:file:C:\Users\34148.npmrc
6 silly config:load:file:C:\Users\34148\AppData\Roaming\npm\etc\npmrc
7 verbose title npm publish
8 verbose argv “publish” “–workspace” “my-qqbot-xxds” “–access” “public” “–registry” “https://registry.npmjs.org”
9 verbose logfile logs-max:10 dir:C:\Users\34148\AppData\Local\npm-cache_logs\2024-08-25T20_18_45_773Z-
10 verbose logfile C:\Users\34148\AppData\Local\npm-cache_logs\2024-08-25T20_18_45_773Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 verbose stack Error: No workspaces found:
13 verbose stack --workspace=my-qqbot-xxds
13 verbose stack at getWorkspaces (C:\Program Files\nodejs\node_modules\npm\lib\utils\get-workspaces.js:48:11)
13 verbose stack at async Publish.setWorkspaces (C:\Program Files\nodejs\node_modules\npm\lib\base-cmd.js:171:16)
13 verbose stack at async Publish.execWorkspaces (C:\Program Files\nodejs\node_modules\npm\lib\commands\publish.js:159:5)
13 verbose stack at async module.exports (C:\Program Files\nodejs\node_modules\npm\lib\cli\entry.js:74:5)
14 verbose cwd T:\dev\APP
15 verbose Windows_NT 10.0.26120
16 verbose node v20.15.1
17 verbose npm v10.7.0
18 error No workspaces found:
18 error --workspace=my-qqbot-xxds
19 verbose exit 1
20 verbose code 1
21 error A complete log of this run can be found in: C:\Users\34148\AppData\Local\npm-cache_logs\2024-08-25T20_18_45_773Z-debug-0.log
那个地方要填写的是npm publish --workspace koishi-plugin-(工作区名) --access public --registry https://registry.npmjs.org
koishi-plugin- 是要写上的…