安装package.json [英] Installation of package.json
问题描述
我无法从GitHub安装此库。 [Minishlink / web-push]
我在服务器上安装了Laravel 5,我想将它安装在Laravel目录(项目)中。
我遇到以下问题:
- 当我运行
composer require minishlink / web-push
,我得到下面的错误: - 当我运行
composer require mdanter / eec
时,出现以下错误 - 当我运行
composer require pargonie / rndom_compat
时,我得到
这是 composer.json
文件(我没有在这里包含web-push文件,因为我我正在使用require c ommand通过腻子,[请纠正我,如果我错了] )
$ b
{
name:laravel / laravel,
description:Laravel Framework。,
keywords:[framework,
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,
嘲笑/嘲笑:0.9。*,
phpunit / phpunit:〜4.0,
phpspec / phpspec:〜2.1,
laracasts / utilities :〜2.0
},
autoload:{
classmap:[
dat基础
,
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 /网络推送无关。你的依赖之一是paragonie / random_compat v1.1.5。您应该检查哪一个,并要求所有者更新composer.json。要在您的composer.json,开发机器中临时解决这个问题,请输入:
paragonie / random_compat:dev-master as 1.1.5,
minishlink / web-push:^ 1.1
i am unable to install this library from GitHub. [Minishlink/web-push]
I have Laravel 5 installed on my server, I want to install this in the Laravel directory (project). And will use the library via custom PHP.
I am facing below issues:
- When I run
composer require minishlink/web-push
, I get below error: - When I run
composer require mdanter/eec
, I get below error - When I run
composer require pargonie/rndom_compat
, I get below error
Here is the composer.json
file (I have not included the web-push file here as I am using the require command via putty, [Please correct me if I'm wrong])
{
"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"
}
}
This is the same type of issue as #17. It's not related to Minishlink/web-push. One of your dependancies is stuck in the past with paragonie/random_compat v1.1.5. You should check which one and ask the owner to update the composer.json. To fix this temporarily, in your composer.json, on your dev machine put:
"paragonie/random_compat": "dev-master as 1.1.5",
"minishlink/web-push": "^1.1"
这篇关于安装package.json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!