gpt4 book ai didi

php - 安装package.json

转载 作者:太空宇宙 更新时间:2023-11-04 05:50:47 25 4
gpt4 key购买 nike

我无法从 GitHub 安装此库。 [Minishlink/网络推送]

我的服务器上安装了 Laravel 5,我想将其安装在 Laravel 目录(项目)中。并将通过自定义 PHP 使用该库。

我面临以下问题:

  1. 当我运行 composer require minishlink/web-push 时,出现以下错误:enter image description here
  2. 当我运行 composer require mdanter/eec 时,出现以下错误 enter image description here
  3. 当我运行 composer require pargonie/rndom_compat 时,出现以下错误 enter image description here

这里是 composer.json 文件(我没有在此处包含 web-push 文件,因为我通过 putty 使用 require 命令,[如果我错了,请纠正我])

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"guzzlehttp/guzzle": "~4.0",
"maatwebsite/excel": "~2.0.0",
"aloha/twilio": "^2.0",
"laravel/socialite": "2.0.*",
"ixudra/curl": "6.*",
"laracasts/utilities": "^2.1"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1",
"laracasts/utilities": "~2.0"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
}
}

最佳答案

这与 #17 属于同一类型的问题。它与 Minishlink/web-push 无关。你的依赖项之一被 paragonie/random_compat v1.1.5 困在了过去。您应该检查哪一个并要求所有者更新composer.json。要暂时解决此问题,请在您的开发机器上的composer.json中输入:

"paragonie/random_compat": "dev-master as 1.1.5",
"minishlink/web-push": "^1.1"

关于php - 安装package.json,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38843580/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com