启动报错,yarn dev 失败, [error] Cannot find plugin '@nocobase/plugin-acl'

* 描述问题

运行yarn dev 时报错, [error] Cannot find plugin ‘@nocobase/plugin-acl’,所有的插件似乎都找不到了,如下图

* 运行环境

  • NocoBase 版本:1.9.11
  • 数据库种类与版本: MySQL 8.0.44
  • 操作系统:Windows
  • 部署方式:源码
  • Docker 镜像版本:
  • NodeJS 版本:20.19.5

如何重现

按照官网安装步骤,git源码安装:

  1. git clone GitHub - nocobase/nocobase: NocoBase is the most extensible AI-powered no-code/low-code platform for building business applications and enterprise solutions. -b main --depth=1 my-nocobase
    2.配置环境变量
    3.yarn install --frozen-lockfile
    4.yarn nocobase install --lang=zh-CN
    5.yarn dev

首次安装是可以正常运行的,但是运行过几次以后,再次 yarn dev 就会报错,之前运行过一次 yarn doc:cn,之后在也不能启动成功了。删除了 node_modules 重新安装了也不行

预期行为

截图


日志

重新在一个新的目录重新安装一个新的环境,链接历史数据库

已经修复了,window系统没有给命令行权限,所以加载插件失败了,启用开发者模式就可以了

1 Like