我正在开发一个laravel项目,并希望添加一个依赖调用
[laravel-school]$ composer require {dependecy}
以及我在项目目录中调用的任何作曲家动作我都会收到消息
[laravel-school]$ composer update
Composer could not find the config file: /home/[username]/.composer/vendor/bin
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
我不能得到的是:我在一个正确的位置有一个composer.json文件,即项目的根目录。
我是如何到达那里的:
我确实通过设置了laravel项目
laravel new {project}
我已安装的简短概述:
$ which composer
/usr/local/bin/composer
[laravel-school]$ ls
app composer.json gulpfile.js phpunit.xml resources tests
artisan config package.json public server.php vendor
bootstrap database phpspec.yml readme.md storage