RuntimeException vendor does not exist and could not be created(RuntimeException 供应商不存在且无法创建)
问题描述
我尝试过在网上找到的其他帖子,但似乎没有一个可以正常工作.我正在使用 这个.我找到了它的根源,即 /var/www/
.然后我执行 composer install
并且我有一个 composer.json
文件.我明白了
I've tried other posts I found online but none seemed to work correctly. I'm working with this. And I make my way to the root of it, which is /var/www/
. So then I do composer install
and I have a composer.json
file in there. I get
[RuntimeException]
vendor does not exist and could not be created.
这是文件
{
"name": "panique/php-login",
"type": "project",
"description": "A PHP login system embedded in a simple MVC framework",
"keywords": ["login", "auth", "user", "authentification", "mvc"],
"homepage": "https://github.com/panique/php-login",
"license": "MIT",
"authors": [
{
"name": "Panique",
"homepage": "http://careers.stackoverflow.com/panique",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/panique/php-login/issues",
"source": "https://github.com/panique/php-login"
},
"require":{
"php": ">=5.3.7",
"ircmaxell/password-compat": "1.0.*",
"phpmailer/phpmailer": "5.2.*",
"gregwar/captcha": "dev-master",
"facebook/php-sdk": "@stable",
"raveren/kint": "dev-1.0.0-wip"
}
}
我真的不知道从这里去哪里......
I'm not really sure where to go from here....
推荐答案
Google 员工,不要将 composer 与 sudo 一起使用:
Googlers, do not use composer with sudo:
将您的用户添加到 www-data 组(此操作需要您注销并重新登录)
Add your user in the www-data group (this action require you to logout and login again)
sudo usermod -a -G www-data `whoami`
授予/var/www 正确的权限
Give the right permissions to /var/www
sudo chown root:root /var/www
sudo chmod 755 /var/www/
将这些权限授予您的项目
Give these permissions to your project
sudo chown -R www-data:www-data /var/www/<project>
sudo chmod -R 774 /var/www/<project>
这篇关于RuntimeException 供应商不存在且无法创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:RuntimeException 供应商不存在且无法创建
基础教程推荐
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01