手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表2016年01月22日的文章

The file or directory to be published does not exist: vendor/bower/jquery/dist

 标题所说的问题可能早期用户都遇到过。但其实这个问题在官方也早就有解决方案了,不知道为什么还有人问起。

这其实是与:fxp/composer-asset-plugin 相关的一个BUG,你在global require的时候,用1.1的beta版就没问题了。
很简单就能发现这个问题了,你先:composer global require "fxp/composer-asset-plugin:~1.1.1",然后composer install就OK了。
其实你如果每次composer update报这个错,你就应该有警惕了:
XML/HTML代码
  1. Deprecation Notice: The Composer\Package\LinkConstraint\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead. in phar:///usr/local/bin/compose  
  2. r/src/Composer/Package/LinkConstraint/MultiConstraint.php:17  
  3. Deprecation Notice: The Composer\Package\LinkConstraint\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead. in phar:///usr/l  
  4. ocal/bin/composer/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php:17  
当然如果你操作完后还是没看到有任何反应,OK,先清除cache......
不多说,Over