WIN11 清除依赖重新安装问题依然不能解决
优先询问AI 论坛回复的人比较少
试过了,AI说配置 通过resolutions 字段消除版本冲突,确保所有子依赖使用相同版本的包{
“resolutions”: {
“lodash”: “^4.17.21”
}
}清除依赖后重装,试了不行
找到个方法,在NODEJS安装目录依赖里面找到lodash ,复制覆盖NOCOBASE依赖目录下lodash,过了安装依赖错误,可以执行数据升级了
除了每次YARN INSTALL 都要靠手动复制LODASH,最新源码又出现YARN BUILD 错误
D:\nocobase-next>yarn build
yarn run v1.22.22
$ nocobase-v1 build
$ tsup
@nocobase/cli: running package script “build” (clean + tsc)
$ yarn clean && tsc -p tsconfig.json && mkdir -p dist/locale && cp src/locale/*.json dist/locale/
$ rm -rf dist
命令语法不正确。
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
D:\nocobase-next\node_modules\execa\lib\error.js:60
error = new Error(message);
^
Error: Command failed with exit code 1: yarn build
at makeError (D:\nocobase-next\node_modules\execa\lib\error.js:60:11)
at handlePromise (D:\nocobase-next\node_modules\execa\index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at build (D:\nocobase-next\packages\core\build\lib\build.js:65:7) {
shortMessage: ‘Command failed with exit code 1: yarn build’,
command: ‘yarn build’,
escapedCommand: ‘yarn build’,
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Node.js v20.19.0
D:\nocobase-next\node_modules\execa\lib\error.js:60
error = new Error(message);
^
Error: Command failed with exit code 1: nocobase-build
at makeError (D:\nocobase-next\node_modules\execa\lib\error.js:60:11)
at handlePromise (D:\nocobase-next\node_modules\execa\index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Command. (D:\nocobase-next\packages\core\cli-v1\src\commands\build.js:75:7) {
shortMessage: 'Command failed with exit code 1: nocobase-build ',
command: 'nocobase-build ',
escapedCommand: ‘nocobase-build “” “” “” “”’,
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Node.js v20.19.0
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
