RBK
RBK

Reputation: 41

Composer doesn't update my packages on LARAVEL, invalid JSON

after running composer update I got this response:

[Seld\JsonLint\ParsingException]

"C:\ProgramData\ComposerSetup\bin\composer.phar" does not contain valid JSON

Parse error on line 1:

#!/usr/bin/env php<

^

Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['

Already verified on jsonlint.com and it's OK, this is my code:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
       "php": ">=5.5.9",
       "laravel/framework": "5.1.*"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1"
    },
    "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"
    }
}

Upvotes: 0

Views: 1128

Answers (1)

RBK
RBK

Reputation: 41

The solution: CHANGE MY IDE DEFAULT CODING, TO ASCII FOR UTF-8. I dont know why a good IDE do this ascii defa

Upvotes: 1

Related Questions