Trying to develop and add a new extension to Flarum, but I'm getting errors whenever I
composer update
.
The error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package spiff/hello-world could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
...
My Flarum is installed in /var/www/html/ . from there, the extension is in ./workbench/spiff/hello-world/
./composer.json contents:
{
"name": "flarum/flarum",
"description": "Delightfully simple forum software.",
"type": "project",
"keywords": ["forum", "discussion"],
"homepage": "http://flarum.org",
"license": "MIT",
"authors": [
{
"name": "Toby Zerner",
"email": "toby.zerner@gmail.com"
},
{
"name": "Franz Liedke",
"email": "franz@develophp.org"
}
],
"support": {
"issues": "https://github.com/flarum/core/issues",
"source": "https://github.com/flarum/flarum",
"docs": "http://flarum.org/docs"
},
"require": {
"flarum/core": "^0.1.0",
"flarum/flarum-ext-akismet": "^0.1.0",
"flarum/flarum-ext-approval": "^0.1.0",
"flarum/flarum-ext-auth-facebook": "^0.1.0",
"flarum/flarum-ext-auth-github": "^0.1.0",
"flarum/flarum-ext-auth-twitter": "^0.1.0",
"flarum/flarum-ext-bbcode": "^0.1.0",
"flarum/flarum-ext-emoji": "^0.1.0",
"flarum/flarum-ext-english": "^0.1.0",
"flarum/flarum-ext-flags": "^0.1.0",
"flarum/flarum-ext-likes": "^0.1.0",
"flarum/flarum-ext-lock": "^0.1.0",
"flarum/flarum-ext-markdown": "^0.1.0",
"flarum/flarum-ext-mentions": "^0.1.0",
"flarum/flarum-ext-pusher": "^0.1.0",
"flarum/flarum-ext-sticky": "^0.1.0",
"flarum/flarum-ext-subscriptions": "^0.1.0",
"flarum/flarum-ext-suspend": "^0.1.0",
"flarum/flarum-ext-tags": "^0.1.0",
"flagrow/upload": "^0.6.0",
"flagrow/users-list": "^0.1.2",
"spiff/hello-world": "*@dev"
},
"repositories": [
{
"type": "path",
"url": "workbench/*/"
}
],
"require-dev": {
"franzl/studio": "^0.11.0"
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "beta",
"prefer-stable": true
}
./workbench/spiff/hello-world/composer.json contents:
{
"name": "spiff/hello-world",
"description": "trying to make a flarum extension",
"type": "flarum-extension",
"require": {
"flarum/core": "^0.1.0-beta.3"
},
"extra": {
"flarum-extension": {
"title": "hello world"
}
}
}
The extension contains no other files.
I was able to install flagrow/users-list without any problem.
I noticed that no symlink was being made in the ./vendors directory so I wondered if it was a permissions issue, but this still occurs if /var/www/html and all subdirectories and files are chmod 777.
I'm using Composer 1.0.0-beta2, PHP 7.0.30 and Ubuntu 16.04