問題:
here is my composer.json, i want to use Nodge's fork of lessphp project on Github這是我的 composer.json,我想在 Github 上使用 Nodge 的 lessphp 項目的分支
"repositories": [{
"type": "package",
"package": {
"version": "dev-master",
"name": "nodge/lessphp",
"source": {
"url": "https://github.com/Nodge/lessphp.git",
"type": "git",
"reference": "master"
},
"autoload": {
"classmap": ["lessc.inc.php"]
}
}
}],
"require": {
"php": ">=5.3.3",
"nodge/lessphp": "dev-master"
},
But i have this error when i make update :但是當我進行更新時出現此錯誤:
nodge/lessphp dev-master -> no matching package found. nodge/lessphp dev-master -> 沒有找到匹配的包。
I don't know how to require it correctly this fork...我不知道如何正確地要求這個叉子......
Any suggestions ?有什麼建議麼 ?
解決方案:
參考一: https://en.stackoom.com/question/uda3參考二: https://stackoom.com/question/uda3