安装package.json [英] Installation of package.json

查看:676
本文介绍了安装package.json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从GitHub安装此库。 [Minishlink / web-push]

我在服务器上安装了Laravel 5,我想将它安装在Laravel目录(项目)中。



我遇到以下问题:


  1. 当我运行 composer require minishlink / web-push ,我得到下面的错误:

  2. 当我运行 composer require mdanter / eec 时,出现以下错误

  3. 当我运行 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:

  1. When I run composer require minishlink/web-push, I get below error:
  2. When I run composer require mdanter/eec, I get below error
  3. 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屋!

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