vendor/bower/font-awesome或vendor/bower/jquery/dist 不存在
解决方案
找到/vendor/yiisoft/yii2/base/Application.php 找到函数setVendorPath()大概在470行左右 具体如下图
// Yii::setAlias('@bower', $this->_vendorPath . DIRECTORY_SEPARATOR . 'bower');
Yii::setAlias('@bower', $this->_vendorPath . DIRECTORY_SEPARATOR . 'bower-asset');
学习笔记,仅供参考!如有侵权,请联系删除!