是否有一个地方可以存放laravel`vendor`文件夹? [英] Is there a place to get the laravel `vendor` folder in one spot?

查看:77
本文介绍了是否有一个地方可以存放laravel`vendor`文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到这就是作曲家的用意,但我并不特别喜欢它.这是有道理的,但令我烦恼的是laravel5的github无法开箱即用,因为它的vendor目录有些大,虽然laravel确实需要它,但它不一定是laravel5.

I realize that this is what composer is used for, but I don't particularly like it. It makes sense, but it annoys me that laravel5's github doesn't work out of the box because it's vendor directory is somewhat large and isn't necessarily laravel5, although laravel does require it.

这也使我感到困惑,为什么作曲家本身没有得到它.

It also puzzles me why composer doesn't get it itself.

我希望能够

git clone the_laravel5_github_url

composer install

并能够像看起来能够一次运行一样运行,但由于某种原因,该供应商目录不存在.我觉得这使得laravel很难设置,因为它并不那么明显.

and be able to run as it seemed like you were able to do at one time, but for some reason now, the vendor directory isn't there. I feel like this makes laravel harder to set up as it isn't so obvious.

有人在哪里可以获得此软件的最新版本?我感到很失望的是,他们的自述文件中没有提及它,即使使用composer install,您也可以做到,但仍然无法做到.

Is there a place where someone can get an recent version of this? I find it disappointing that there is no mention of it on their readme and that you were able to do it before and still can't despite using composer install.

推荐答案

  1. 使用此命令在您的操作系统上安装Composer curl -sS https://getcomposer.org/installer | php.
  2. 使用此命令将 composer.phar 文件移动到/usr/local/bin/ mv composer.phar /usr/local/bin/composer.这将使您能够全局访问作曲家.
  3. git clone您的项目.
  4. 在项目的根目录中创建一个 vendors 文件夹.
  5. cd到项目的根目录并运行composer update.此命令将在根目录中查找 vendors 文件夹,并将在其中安装项目所需的所有软件包.
  1. Install Composer on your OS using this command curl -sS https://getcomposer.org/installer | php.
  2. Move the composer.phar file to /usr/local/bin/ with this command mv composer.phar /usr/local/bin/composer. This will enable you to access composer globally.
  3. git clone your project.
  4. Make a vendors folder in the root of your project.
  5. cd to root of your project and run composer update. This command will look for vendors folder in the root and will install all the packages required by your project in it.

快乐编码

谢谢:)

这篇关于是否有一个地方可以存放laravel`vendor`文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆