JUI Extension for Yii 2 can not be installed - yii

I want to install JUI Extension for Yii 2, but composer reports me the following issues:
Your requirements could not be resolved to an installable set of packages.
- yiisoft/yii2-jui 2.0.4 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- yiisoft/yii2-jui 2.0.3 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- yiisoft/yii2-jui 2.0.2 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- yiisoft/yii2-jui 2.0.1 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- yiisoft/yii2-jui 2.0.0 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- Installation request for yiisoft/yii2-jui ^2.0 -> satisfiable by yiisoft/yii2-jui[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4].
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.
Installation failed, reverting ./composer.json to its original content.
What I can do in order to fix this?

Finally I found the solution:
If you want to install the JUI extension for Yii2, you should do the following steps:
Run the following composer command: php composer.phar require "fxp/composer-asset-plugin:~1.0"
Run php composer.phar update
Run php composer.phar require --prefer-dist yiisoft/yii2-jui

I had the same problem while I was trying to install Kartik's extension for Yii2 framework. Adding "fxp/composer-asset-plugin": "*" to the require section of my composer.json file solved it.

Need to install the Composer Asset Plugin first:
composer global require "fxp/composer-asset-plugin:~1.0"
This one worked for me

Related

composer require designmynight/laravel-mongodb-passport not installing in laravel8

composer require designmynight/laravel-mongodb-passport --ignore-platform-reqs
Using version ^2.0 for designmynight/laravel-mongodb-passport
./composer.json has been updated
Running composer update designmynight/laravel-mongodb-passport
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- designmynight/laravel-mongodb-passport[v2.0.0, ..., v2.0.1] require illuminate/support ^5.5 || ^6.0 -> found illuminate/support[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev] but it conflicts with your root composer.json require (^8.69).
- Root composer.json requires designmynight/laravel-mongodb-passport ^2.0 -> satisfiable by designmynight/laravel-mongodb-passport[v2.0.0, v2.0.1].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Could Not Find statisfactory version from options when trying to install fishtown-analytics/codegen

I'm upgrading my dbt version from 0.16.0 to 0.17.2, and trying to update our codegen package as well.
My packages YML looks like this:
packages:
- package: fishtown-analytics/codegen
version: 0.2.0
The error I receive is this:
$ dbt deps
Running with dbt=0.17.2
Encountered an error:
Version error for package fishtown-analytics/codegen: Could not find a satisfactory version from options: ['=0.2.0', '=0.0.4', '=0.0.4']
Any Ideas?
I Also had some local packages within the packages.yml file which were dependent on a bad version of fishtown-analytics/codegen. After, I fixed all the dependencies in the downstream packages files everything imported correctly.

How to create Angular 9 project with IVY?

How to create Angular 9 project with IVY?
I tried the following:
ng new sample9prjivy --enable-ivy
My environment:
Angular CLI: 9.0.2
Node: 12.16.0
OS: win32 x64
Angular:
...
Ivy Workspace:
Package and Version
#angular-devkit/architect 0.900.2
#angular-devkit/core 9.0.2
#angular-devkit/schematics 9.0.2
#schematics/angular 9.0.2
#schematics/update 0.900.2
rxjs 6.5.3
C:\src\Angular\pilot\A9>ng new sample9prjivy --enable-ivy
Unknown option: '--enable-ivy'
What I missed?
As an earlier poster tried to explain, there's no such "ng new" flag as --enable-ivy.
As andrewjames explained above, the "ivy" tag is incorrect. You want "angular-ivy". I fixed it for you.
If you want to enable Ivy for older Angular builds, read this thread: How do I enable Ivy for Angular 8 or 9?. You'll need to edit tsconfig.json and angular.json.
It looks like Ivy is now the default for Angular 9:
https://angular.io/guide/ivy
Ivy is the code name for Angular's next-generation compilation and
rendering
pipeline.
With the version 9 release of Angular, the new compiler and runtime
instructions are used by default instead of the older compiler and
runtime, known as View Engine.
As the documentation discusses, there IS a flag for enableIvy ... but it's set in tsconfig.app.json. It is NOT a command line option for "ng new".
Update:
The answer to the OP's original question: you don't have to "create an Angular 9 project with Ivy": in Angular 9, Ivy should be enabled by default.
To answer the follow-on question about NG6002: look here (already cited below):
https://github.com/angular/angular/issues/35399
https://github.com/angular/angular/pull/35191
One final suggestion: it couldn't hurt to:
Update Angular: ng update #angular/cli #angular/core
Create a brand new project and copy the old source into the new project
Another Update
Original problem: ng new sample9prjivy --enable-ivy =>
Unknown option: '--enable-ivy'
Cause: --enable-ivy simply isn't a legal "ng" option with Angular 9. Don't do it!
Next problem: I always got more error NG6002
This is a well-known issue upgrading existing projects to Angular 9. Look here and here. The basic issue is that "upgrading" the project can result in "inconsistencies". Both links suggest workarounds; I've also suggested some workarounds. I don't know if you've tried any of them yet :(
CURRENT SUGGESTION:
Since you don't seem to be making much progress, I'd suggest the following:
a) UNINSTALL Angular: get a "clean version":
npm uninstall -g #angular/cli
npm cache clean
npm cache verify
npm install -g #angular/cli
b) Confirm your "clean install" of Angular 9:
ng --version
...
Angular CLI: 9.0.3
Node: 10.15.1
OS: win32 x64
Angular:
...
Ivy Workspace:
Package Version
------------------------------------------------------
#angular-devkit/architect 0.900.3
#angular-devkit/core 9.0.3
#angular-devkit/schematics 9.0.3
#schematics/angular 9.0.3
#schematics/update 0.900.3
rxjs 6.5.3
c) Create a brand new project with your "known good" Angular install.
Do NOT change ANY configuration! Do NOT try to explicitly "enable Ivy"!
d) Copy over your old source code (ONLY the project source code!) to your new project.
e) Verify that "everything works".
f) Post back what you find.

Is it okay to use NPM packages along Composer in Laravel PHP project

Is it okay to install and use NPM for JS libraries along composer in laravel because laravel dependency already includes composer. Thanks.
Yes. This is standard Laravel functionality.
NPM regulates the JS packages in the node_modules folder.
Both NPM and NODE.js need to be installed on your machine: https://blog.teamtreehouse.com/install-node-js-npm-windows
Composer regulates the PHP packages in the vendor folder.
This also needs to be installed separately on your machine: https://laravel.com/docs/4.2
Not sure what you mean by:
... because laravel dependency already includes composer.
Composer is needed anyway, no need to see it as a complication.

sylius/metadata install in sylis beta 2

I installed the sylius v1.0.0-beta2 and symfony 3 but I have a bit problems when I install Sylius metadata.
When I launch the command composer.phar require sylius/metadata-bundle it return an error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- don't install sylius/resource v0.19.0|don't install sylius/sylius v1.0.0-beta.2
- don't install sylius/resource v0.19.0|remove sylius/sylius v1.0.0-beta.2
- don't install sylius/resource v0.19.0|don't install sylius/sylius v1.0.0-beta.2
- sylius/metadata v0.19.0 requires sylius/resource ^0.19 -> satisfiable by sylius/resource[v0.19.0].
- sylius/metadata-bundle v0.19.0 requires sylius/metadata ^0.19 -> satisfiable by sylius/metadata[v0.19.0].
- Installation request for sylius/metadata-bundle ^0.19.0 -> satisfiable by sylius/metadata-bundle[v0.19.0].
- Installation request for sylius/sylius (locked at v1.0.0-beta.2, required as ^1.0#beta) -> satisfiable by sylius/sylius[v1.0.0-beta.2].
Installation failed, reverting ./composer.json to its original content.
How can I install it ?