1

这是我第一次vagrant up在格子目录下运行时收到的错误消息:

TASK [wordpress-install : Install Dependencies with Composer] ******************
System info:
Ansible 2.9.0; Vagrant 2.2.6; Darwin
Trellis Head
---------------------------------------------------
Composer could not find a composer.json file in /srv/www/example.com/current
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section failed: [default] (item=example.com) => {"ansible_loop_var": "item", "changed": false, "item": {"key": "example.com", "value": {"admin_email": "admin@example.test", "cache": {"enabled": false}, "local_path": "../site", "multisite": {"enabled": false}, "site_hosts": [{"canonical": "example.test", "redirects": ["www.example.test"]}], "ssl": {"enabled": false, "provider": "self-signed"}}}, "stdout": "Composer could not find a composer.json file in /srv/www/example.com/current\nTo initialize a project, please create a composer.json file as described in the https://getcomposer.org/ \"Getting Started\" section\n", "stdout_lines": ["Composer could not find a composer.json file in /srv/www/example.com/current", "To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ \"Getting Started\" section"]}

我该如何解决?在哪里可以找到适用于在 Mac 上进行本地开发的 Trellis、Bedrock 和 Sage 的正确 composer.json?

麦克卡特琳娜 (10.15.2)

4

1 回答 1

1

好吧,我终于想通了。您必须在 MacOS Catalina 上为 /sbin/nfsd 授予全盘访问权限(首选项>安全和隐私>隐私)。

于 2020-01-06T04:10:22.820 回答