wordpress - Roots 在 Mac 和 VituralBox 上全新安装的 Trellis 缺少 /srv/www/example.com/current 下的 composer.json
问题描述
这是我第一次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)
解决方案
好吧,我终于想通了。您必须在 MacOS Catalina 上为 /sbin/nfsd 授予全盘访问权限(首选项>安全和隐私>隐私)。
推荐阅读
- quickfixj - 如何在 ExecutionReport 中处理 NewOrderList
- php - 如何在 PHP 中自动调整图像大小?
- maven - maven测试依赖项的依赖关系
- python - 我收到 AttributeError: 'TBXTools' 没有属性 'cur'
- android - 如何使用json解码
- python - 如何在 ANN 中再添加一个隐藏层?并且精度低
- javascript - 如何在daterangepicker jquery中设置加两年
- c++ - 如何根据字符拆分字符串
- python - 如何使用 python 检查网站是否响应?
- c++ - 静态 cpp 中的非静态成员