我正在尝试使用Vagrant通过此命令添加一个框
function my_custom_header() {
if(is_category('19')) {
get_header('19');
} elseif(is_category('20')) {
get_header('20');
} else {
get_header();
}
}
但是失败,并出现以下错误
vagrant box add bento/centos-7 --provider=VirtualBox
我正在Windows 10环境中使用CygWin的Vagrant 2.2.3
建议?
答案 0 :(得分:0)
我已经解决了...关于提供者名称,这确实是一个愚蠢的错误...不是“ VirtualBox”,而是“ virtualbox” ...
正确的命令是
vagrant box add bento/centos-7 --provider=virtualbox