Laravel 5 : artisan workbench : illuminate/support could not be found - workbench

I'm trying to create a new package with php artisan workbench vendor/packagename but when I run it I get
Package workbench created!
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package illuminate/support 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
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
The illuminate/support is present under laravel/framework/src/Illuminate/Support so not quite sure what might be causing it.
The generated composer.json file requires the following
"require": {
"php": ">=5.4.0",
"illuminate/support": "5.0.*"
},
Not sure if illuminate/support version 5.0 is what's causing the problem?
PROBLEM SOLVED
I had to manually amend the minimum-stability from stable to dev within the half-generated package then run composer update to complete it.

As Laravel 5 is still under development, change your composer.json called "minimum-stability" from stable to "dev" :
"minimum-stability": "dev"
Then run at your command line
composer update

Related

Angular 5.2 -> 6.0 migration - angular.json not replacing angular-cli.json

So I've been following the official documentation to upgrade from Angular 5.2 to Angular 6.0 (I'm migrating an app to Angular 13).
When I run the command NG_DISABLE_VERSION_CHECK=1 npx #angular/cli#6 update #angular/cli#6 I've got no errors whatsoever:
$ NG_DISABLE_VERSION_CHECK=1 npx #angular/cli#6 update #angular/cli#6
npx : 336 installé(s) en 36.906s
Using package manager: 'npm'
Collecting installed dependencies...
Found 100 dependencies.
Fetching dependency metadata from registry...
UPDATE package.json (4717 bytes)
✔ Packages successfully installed.
This command is supposed to replace/migrate the angular-cli.json file to a new file called angular.json but when I look at my files I still have the old angular-cli.json file and not the new one.
I've tried a lot of suggestions found here and there on the internet and SO such as installing/reinstalling angular-cli, cleaning my cache, I tried to revert to a working commit, I tried the ng update #angular/cli --from={blah} --migrate-only command but nothing seems to work...
Any ideas?
Found a solution in the end by emptying my .npmrc file and running the command again

Possible to write versions in composer.json similar to npm update --save

Handed a project that has a composer.json that has all package versions listed as "*" and has no composer.lock file
In the original project, running composer show, tells me all versions of everything installed. Excellent.
Running the project on a different machine, running composer install gets all the latest packages, which breaks the project because major updates mess with everything.
I'd love to know if it's possible to trade out all those "*"'s with caret version numbers utilising composer show --save-dev or something similar. Perhaps only possible by running a script or installing something?

Yii2.0 installation is not working using composer

composer create-project --prefer-dist yiisoft/yii2-app-basic basic
The following is the ouput of above command
Installing yiisoft/yii2-app-basic (2.0.6)
- Installing yiisoft/yii2-app-basic (2.0.6)
Loading from cache
Created project in basic
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*#stable | 1.11.*#stable -> no matching package found.
- yiisoft/yii2 2.0.5 requires bower-asset/jquery 2.1.*#stable | 1.11.*#stable -> no matching package found.
- Installation request for yiisoft/yii2 >=2.0.5 -> satisfiable by yiisoft/yii2[2.0.5, 2.0.6].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Please, refer the installation guide. It seems that you are missing asset plugin:
composer global require "fxp/composer-asset-plugin:~1.2.0"
You should run composer clear-cache first before running
composer global require "fxp/composer-asset-plugin:~1.1.1"
This worked for me.

My composer.json does not install new dependencies using composer update command

I am installing external dependencies using composer update command. The following is the section of the composer.json file in c:\xampp\htdocs\myproject\vendor\laravel\framework\ directory.
"require": {
"laravelcollective/html": "~5.0",
"matriphe/imageupload": "5.1.*"
"illuminate/html": "5.0.*#dev"
},
I am getting the following results after running the composer update command:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
I have also tried to create another require array in the composer.json and added the packages I want to install with no success.
The composer update command could not install any unstalled dependency using the composer update command. Even composer self-update did not solve the problem.
Kindly assist me, I have been stuck here for some days now trying all I would do but without success.
I am changing the composer.json under the following directory: c:\xampp\htdocs\myproject\vendor\laravel\framework\ Is this ok?
Don't change any files inside the vendor directory, they are managed by Composer. To install further packages use the composer.json in your project's directory.
And use composer install to install new packages as composer update will update already installed packages to newer versions (if available) too.
composer self-update just updates Composer itself.
You missed column after "matriphe/imageupload": "5.1.*", try to change it:
"require": {
"laravelcollective/html": "~5.0",
"matriphe/imageupload": "5.1.*",
"illuminate/html": "5.0.*#dev"
}

Composer install: your requirements could not be resolved to an installable set of packages

Trying to install Bolt v2.2.4 with the following commands:
git clone git://github.com/bolt/bolt.git bolt
cd bolt
git checkout v2.2.4
composer install
Then I get the following error:
$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for m6web/symfony2-coding-standard dev-master#dev -> satisfiable by m6web/symfony2-coding-standard[dev-master].
- m6web/symfony2-coding-standard dev-master requires squizlabs/php_codesniffer ~1.0 -> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
I just ran into the same issue under bolt 2.1.9
I 'fixed' it for me for the moment by changing 1.5.* to ~2 for squizlabs/php_codesniffer in composer.json
Are you on IPv6 per chance? If so, do a composer self-update.