[英]composer.json does not contain a valid json
there is a syntax error in my composer.json file but I just can't seem to find the error. 我的composer.json文件中存在语法错误,但是我似乎找不到该错误。 I already have a Laravel object on top of the file, but I also want to add Goaop, like the following code.
我已经在文件顶部添加了一个Laravel对象,但是我也想添加Goaop,就像下面的代码一样。 how can I do it?
我该怎么做? thank you
谢谢
//newly added code
{
"name": "goaop/goaop-laravel-bridge",
"description": "Integration bridge for Go! AOP framework",
"type": "library",
"keywords": ["bridge", "laravel", "aop", "php", "aspect"],
"require": {
"goaop/framework": "^1.0|^2.0",
"laravel/framework": "^5.0"
},
"license": "MIT",
"authors": [
{
"name": "Lisachenko Alexander",
"email": "lisachenko.it@gmail.com"
}
],
"autoload": {
"psr-4": {
"Go\\Laravel\\GoAopBridge\\": "./src"
}
}
}
Looks like you just copied the package's composer.json
and pasted it to the bottom of yours. 看起来您刚刚复制了包的
composer.json
并将其粘贴到您的底部。 That is not how you install packages. 那不是您安装软件包的方式。
From your command line run: 从命令行运行:
composer require goaop/goaop-laravel-bridge
This will update your composer.json and .lock files and install the package. 这将更新您的composer.json和.lock文件并安装软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.