Closed ImperatorMarsa closed 3 years ago
Hello! Sorry for long response. You have composer asset plugin? I have it:
$ cat ~/.composer/composer.json
{
"require": {
"fxp/composer-asset-plugin": "^1.4"
}
}
If you do not have it, then install. I have now tried a clean install and all fine:
execut@execut:/var/www$ cd /tmp
execut@execut:/tmp$ composer create-project --prefer-dist yiisoft/yii2-app-basic basic
Installing yiisoft/yii2-app-basic (2.0.16)
- Installing yiisoft/yii2-app-basic (2.0.16): Downloading (100%)
Created project in basic
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 64 installs, 0 updates, 0 removals
- Installing yiisoft/yii2-composer (2.0.7): Downloading (100%)
- Installing codeception/verify (0.4.0): Downloading (100%)
- Installing myclabs/deep-copy (1.8.1): Downloading (100%)
- Installing codeception/specify (0.4.6): Downloading (100%)
- Installing swiftmailer/swiftmailer (v5.4.12): Downloading (100%)
- Installing bower-asset/jquery (3.3.1): Downloading (100%)
- Installing bower-asset/yii2-pjax (2.0.7.1): Downloading (100%)
- Installing bower-asset/punycode (v1.3.2): Downloading (100%)
- Installing bower-asset/inputmask (3.3.11): Downloading (100%)
- Installing cebe/markdown (1.2.1): Downloading (100%)
- Installing ezyang/htmlpurifier (v4.10.0): Downloading (100%)
- Installing yiisoft/yii2 (2.0.16): Downloading (100%)
- Installing yiisoft/yii2-swiftmailer (2.0.7): Downloading (100%)
- Installing bower-asset/bootstrap (v3.4.1): Downloading (100%)
- Installing yiisoft/yii2-bootstrap (2.0.9): Downloading (100%)
- Installing yiisoft/yii2-debug (2.0.14): Downloading (100%)
- Installing bower-asset/typeahead.js (v0.11.1): Downloading (100%)
- Installing phpspec/php-diff (v1.1.0): Downloading (100%)
- Installing yiisoft/yii2-gii (2.0.8): Downloading (100%)
- Installing fzaninotto/faker (v1.8.0): Downloading (100%)
- Installing yiisoft/yii2-faker (2.0.4): Downloading (100%)
- Installing symfony/polyfill-ctype (v1.10.0): Downloading (100%)
- Installing symfony/yaml (v4.2.3): Downloading (100%)
- Installing symfony/finder (v4.2.3): Downloading (100%)
- Installing symfony/contracts (v1.0.2): Downloading (100%)
- Installing symfony/event-dispatcher (v4.2.3): Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.10.0): Downloading (100%)
- Installing symfony/dom-crawler (v4.2.3): Downloading (100%)
- Installing symfony/css-selector (v4.2.3): Downloading (100%)
- Installing symfony/console (v4.2.3): Downloading (100%)
- Installing symfony/browser-kit (v4.2.3): Downloading (100%)
- Installing sebastian/diff (2.0.1): Downloading (100%)
- Installing sebastian/recursion-context (3.0.0): Downloading (100%)
- Installing sebastian/exporter (3.1.0): Downloading (100%)
- Installing sebastian/comparator (2.1.3): Downloading (100%)
- Installing sebastian/version (2.0.1): Downloading (100%)
- Installing sebastian/resource-operations (1.0.0): Downloading (100%)
- Installing sebastian/object-reflector (1.1.1): Downloading (100%)
- Installing sebastian/object-enumerator (3.0.3): Downloading (100%)
- Installing sebastian/global-state (2.0.0): Downloading (100%)
- Installing sebastian/environment (3.1.0): Downloading (100%)
- Installing doctrine/instantiator (1.1.0): Downloading (100%)
- Installing phpunit/php-text-template (1.2.1): Downloading (100%)
- Installing phpunit/phpunit-mock-objects (5.0.10): Downloading (100%)
- Installing phpunit/php-timer (1.0.9): Downloading (100%)
- Installing phpunit/php-file-iterator (1.4.5): Downloading (100%)
- Installing theseer/tokenizer (1.1.0): Downloading (100%)
- Installing sebastian/code-unit-reverse-lookup (1.0.1): Downloading (100%)
- Installing phpunit/php-token-stream (2.0.2): Downloading (100%)
- Installing phpunit/php-code-coverage (5.3.2): Downloading (100%)
- Installing webmozart/assert (1.4.0): Downloading (100%)
- Installing phpdocumentor/reflection-common (1.0.1): Downloading (100%)
- Installing phpdocumentor/type-resolver (0.4.0): Downloading (100%)
- Installing phpdocumentor/reflection-docblock (4.3.0): Downloading (100%)
- Installing phpspec/prophecy (1.8.0): Downloading (100%)
- Installing phar-io/version (1.0.1): Downloading (100%)
- Installing phar-io/manifest (1.0.1): Downloading (100%)
- Installing phpunit/phpunit (6.5.14): Downloading (100%)
- Installing ralouphie/getallheaders (2.0.5): Downloading (100%)
- Installing psr/http-message (1.0.1): Downloading (100%)
- Installing guzzlehttp/psr7 (1.5.2): Downloading (100%)
- Installing codeception/stub (1.0.4): Downloading (100%)
- Installing behat/gherkin (v4.4.5): Downloading (100%)
- Installing codeception/base (2.3.9): Downloading (100%)
symfony/contracts suggests installing psr/cache (When using the Cache contracts)
symfony/contracts suggests installing psr/container (When using the Service contracts)
symfony/contracts suggests installing symfony/cache-contracts-implementation
symfony/contracts suggests installing symfony/service-contracts-implementation
symfony/contracts suggests installing symfony/translation-contracts-implementation
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/event-dispatcher suggests installing symfony/http-kernel
symfony/console suggests installing psr/log (For using the console logger)
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
symfony/browser-kit suggests installing symfony/process
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
codeception/base suggests installing aws/aws-sdk-php (For using AWS Auth in REST module and Queue module)
codeception/base suggests installing codeception/phpbuiltinserver (Start and stop PHP built-in web server for your tests)
codeception/base suggests installing flow/jsonpath (For using JSONPath in REST module)
codeception/base suggests installing league/factory-muffin (For DataFactory module)
codeception/base suggests installing league/factory-muffin-faker (For Faker support in DataFactory module)
codeception/base suggests installing phpseclib/phpseclib (for SFTP option in FTP Module)
codeception/base suggests installing stecman/symfony-console-completion (For BASH autocompletion)
codeception/base suggests installing symfony/phpunit-bridge (For phpunit-bridge support)
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
> yii\composer\Installer::postCreateProject
> yii\composer\Installer::postInstallchmod('runtime', 0777)...done.
chmod('web/assets', 0777)...done.
chmod('yii', 0755)...
done.
execut@execut:/tmp$ cd basic/
assets/ commands/ config/ controllers/ mail/ models/ runtime/ tests/ vagrant/ vendor/ views/ web/ widgets/
execut@execut:/tmp$ cd basic/
execut@execut:/tmp/basic$ php composer.phar require execut/yii2-widget-bootstraptreeview "dev-master"
Could not open input file: composer.phar
execut@execut:/tmp/basic$ composer require execut/yii2-widget-bootstraptreeview "dev-master"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
- Installing bower-asset/patternfly-bootstrap-treeview (v2.1.8): Downloading (100%)
- Installing bower-asset/jquery-ui (1.12.1): Downloading (100%)
- Installing yiisoft/yii2-jui (2.0.7): Downloading (100%)
- Installing execut/yii2-base (1.10.3): Downloading (100%)
- Installing execut/yii2-widget-bootstraptreeview (dev-master 63140b3): Cloning 63140b3710 from cache
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
Now there is a more effective tool for working with bower https://asset-packagist.org/site/about
what am I doing wrong