rageframe2升级yii版本后gii报错:The file or directory to be published does not exist: /www/wwwroot/vendor/bo


rageframe2升级yii版本后gii报错:The file or directory to be published does not exist: /www/wwwroot/vendor/bower-asset/jquery/dist


官方要求的升级第三方包compsoer方式,使用以下方式一切正常

php composer.phar update


但由于用现有包直接安装速度过慢(也可能是我服务器原因),所以我还是比较喜欢用

composer update


于是更新成功后,出现上述问题。


解决方法:

在使用 composer update 更新时,发现是卸载了原有的包,具体去查了原因是yii2官方已经停止对bower-asset包进行维护,而是换了新的yidas/yii2-bower-asset


鼎云博客


于是修改/common/config/main.php中bower对应的映射路径,保存后再次测试gii正常,问题解决了


    'aliases' => [
        '@bower' => '@vendor/yidas/yii2-bower-asset/bower', //'@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
    ],



鼎云博客
  • 最新评论
  • 总共1条评论
鼎云博客

袁春雪:666

2021-04-12 11:12:13 回复