执行 composer update 出现Warning: This development build of composer is over 60 days old.
2015-09-22 12:40
796 查看
本地环境需要更新到最新版本的composer,使用命令
按照上面的提示执行
使用
composer update,平时都会正常更新,今天用的是其他的电脑,就出现了如下错误:
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version. PHP Warning: require(/var/www/html/laravel/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/laravel/bootstrap/autoload.php on line 17 PHP Fatal error: require(): Failed opening required '/var/www/html/laravel/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/laravel/bootstrap/autoload.php on line 17 Script php artisan clear-compiled handling the pre-update-cmd event returned with an error [RuntimeException] Error Output: PHP Warning: require(/var/www/html/laravel/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/laravel/bootstrap/autoload. php on line 17 PHP Fatal error: require(): Failed opening required '/var/www/html/laravel/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/laravel/b ootstrap/autoload.php on line 17 update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesN]
按照上面的提示执行
/usr/local/bin/composer self-update又出现如下错误:d
[Composer\Downloader\FilesystemException] Filesystem exception: Composer update failed: the "/usr/local/bin/composer" file could not be written self-update [-r|--rollback] [--clean-backups] [--no-progress] [version]
使用
chmod -R 777 /usr/local/bin/composerd
相关文章推荐
- iOS UI基础-13.0 数据存储
- IOS-UI-基础开发
- Sending redirect to another servlet/JSP without loosing the request parameters
- [blabla]a quick code about linear regression using gradient descent
- response.sendRedirect()与request.getRequestDispatcher().forward()区别
- UEditor 自定义上传 远程服务器 Jsp Java
- 错误:Access restriction: The type 'OperatingSystemMXBean' is not API (restriction on required library
- easyui的弹出浮层(加载中...)的效果。
- guid 在线生成
- java离request获取当前从访问完成url至
- Android UI开发第二十四篇——Action Bar
- 取消UITableViewCell的选中状态
- Use procexp.exe in sysinernalssuite to analyze process runing info
- BZOJ 2079 [Poi2010]Guilds 图
- Thrift的required和optional源码分析
- 修改UISearchBar的Cancel按钮为中文等本地化问题
- Ant编译打jar包 build.xml
- Xcode Build Search Paths设置
- UITableViewCell 中的单选控制 UITableViewCellAccessoryCheckmark
- 对文本框内容进行实时判断