简体   繁体   中英

Webpack bundle repository not found

I have in my composer.json :

"symfony/webpack-encore-pack": "*",

In composer.lock:

{
        "name": "symfony/webpack-encore-pack",
        "version": "v1.0.3",
        "source": {
            "type": "git",
            "url": "https://github.com/symfony/webpack-encore-pack.git",
            "reference": "8d7f51379d7ae17aea7cf501d910a11896895ac4"
        },
        "dist": {
            "type": "zip",
            "url": "https://api.github.com/repos/symfony/webpack-encore-pack/zipball/8d7f51379d7ae17aea7cf501d910a11896895ac4",
            "reference": "8d7f51379d7ae17aea7cf501d910a11896895ac4",
            "shasum": ""
        },
        "require": {
            "symfony/asset": "^3.3|^4.0"
        },
        "type": "symfony-pack",
        "extra": {
            "thanks": {
                "name": "symfony/webpack-encore",
                "url": "https://github.com/symfony/webpack-encore"
            }
        },
        "notification-url": "https://packagist.org/downloads/",
        "license": [
            "MIT"
        ],
        "description": "A pack for Symfony Encore",
        "abandoned": "symfony/webpack-encore-bundle",
        "time": "2018-07-16T10:15:28+00:00"
    },

When I try composer install I have the error: Installing symfony/webpack-encore-pack (v1.0.3): Downloading Failed to download symfony/webpack-encore-pack from dist: The "https://api.github.com/repos/symfony/webpack-encore-pack/zipball/8d7f51379d7ae17aea7cf501d910a11896895ac4" file could not be downloaded (HTTP/1.1 404 Not Found) .

I checked this URL and the file didn't exist. How can I solve this issue?

symfony/webpack-encore-pack has seen its last update more than three years ago and is abandoned. The code is no longer present on Github, so it cannot be downloaded from the location that is stored in your composer.lock (that's what https://api.github.com/repos/symfony/webpack-encore-pack/zipball/8d7f51379d7ae17aea7cf501d910a11896895ac4 does: it links to the URL of a zipped version of that package in a specific version).

According to a discussion about this , you should use symfony/webpack-encore-bundle instead. Sadly, this package is not compatible with Symfony 3.3 in any version, so you might need to update it to v3.4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM