提问前请务必仔细阅读 如何排查故障 和 常见问题。
问题描述:
执行 flarum-cli make backend model aaa 报错
报错内容:
✔ Work in Flarum package located at /data/www/packages/test? … yes
✔ Model class name … aaa
✔ Table name (Optional) … aaa
✔ Generate corresponding Migration? … yes
✔ Generate corresponding API Serializer? … yes
✔ Generate corresponding Validator? … yes
✔ Generate corresponding Repository? … yes
✔ Generate corresponding Policy? … yes
Error occurred, and could not complete:
Command failed: php /usr/local/lib/node_modules/@flarum/cli/php-subsystem/index.php
Error: Command failed: php /usr/local/lib/node_modules/@flarum/cli/php-subsystem/index.php
at StepManager.run (/usr/local/lib/node_modules/@flarum/cli/lib/boilersmith/step-manager.js:84:31)
at async Model.run (/usr/local/lib/node_modules/@flarum/cli/lib/base-command.js:57:21)
at async Model._run (/usr/local/lib/node_modules/@flarum/cli/node_modules/@oclif/core/lib/command.js:74:22)
at async Config.runCommand (/usr/local/lib/node_modules/@flarum/cli/node_modules/@oclif/core/lib/config/config.js:268:25)
at async Object.run (/usr/local/lib/node_modules/@flarum/cli/node_modules/@oclif/core/lib/main.js:78:5)
调试模式报错内容:
已尝试的解决办法:
网址: