Closed sufyan568 closed 3 years ago
It's not clear from the screenshot, but my guess you are in the wrong directory.
craftable new my_project
creates new directory my_project
.
Can you please check?
composer global require brackets/craftable-installer craftable new my_project these commands run perfectly. inside the my_project, run comond Craftable install then response is craftable install aborted
Sorry, I still don't see whole output and I still think you are in the wrong directory:
A) either you create new Craftable project, then:
craftable new my_project
cd my_project
<----- this is the line I don't see in your screenshotscraftable install
B) in the very last screenshot you are trying something completely different, you are requiring brackets/craftable
, but that's something you use when you already have a Laravel project and tries to instal Cratable there. So this is completely different approach from creating new Craftable project. I'm not sure, which one you actually want to go for and you cannot mix those approaches, it will not work.
I've updated the docs, to be more explicit about this: https://www.getcraftable.com/docs/7.0/installation#new-project
The same thing happens to me, I already checked all the versions of my development but it does not work for me
@hlo2109 do you have docker installed and running?
@palypster no, this system does not work normal without docker
https://www.getcraftable.com/docs/7.0/installation#requirements
By default Craftable uses Docker for its installation. You should checkout out Laravel Sail for more information. If you don't want to use Docker/Sail, use --no-sail flag as described in the New Craftable project section.)
In this way??
craftable new my_project cd my_project craftable install --no-sail
It doesn't work for me
Hmm, that should work. Weird. What's the output?
Hello, it worked for me: Or very strange, I had already launched the same command several times and it always came out aborted.
Thanks.
we run these commands are mentioned in documentation. The issue is not fixed. Aborted.
Hmm, that should work. Weird. What's the output?
Aborted.
No other response.
this is happen to me too.
I want to add Craftable into my existing project using craftable install --no-sail
and the result is Aborted
kindly fix this issue Aborted @palypster
Believe me, I would gladly fix it, if I had a clue. It's hard to debug it, because it works for me, I see no "Aborted" in my local dev. So I think it's system specific and sorry I cannot afford to invest so much on it to debug several operating systems / environment setups.
You can check the sources of the craftable installer in:
~/.composer/vendor/bin/craftable
and/or in:
~/.composer/vendor/brackets/craftable-installer
and look what it does and debug step by step. If you find out something, I will definitely help to finish the fix.
ok i will check and debug the as per your given instructions. @palypster
Same error here.
try composer dump-autoload
here too. Update laravel package, open terminal (also as admin is the same): craftable new my_project cd my_project craftable install --no-sail
after some seconds i get Aborted. Without any log or printed error. Tried with composer dump-autload but same result. Tried to launch more times install --no-sail but always i get Aborted.
@palypster can you explain what is the difference result between command craftable install
with php artisan craftable:install
?
because when I use artisan
command it seem to be work, all asset migrated from vendor
to app
and then the app run. other issues using artisan
command is several undefined code in controller
craftable install
is just a wrapper around php artisan craftable:install
, look:
https://github.com/BRACKETS-by-TRIAD/craftable-installer/blob/master/src/InstallCommand.php
so if artisan craftable:install
works for you guys, you can safely use it.
Actually, we have it in our docs under section Manual installation
:
https://www.getcraftable.com/docs/7.0/installation#manual-instalation
Guys I found the problem (i suppose it could be the same for you). here the explenation:
1) craftable new my_project
2) CREATE A NEW DB AND CONFIGURE IT INSIDE .ENV file inside my_project folder
3) cd my_project
4) craftable install
@palypster , in your documentation, it is not so clear that, after having created the project, it is ABSOLUTELY NECESSARY to modify the db inside the .env file before running the install command. In manual installation it is explained much better. I think this is the problem that generates the Aborted error for everyone.
Yes, I forget to mentioned that, sorry about that guys :-(
This is the reason why craftable install
command actually tests this before installation, look:
https://github.com/BRACKETS-by-TRIAD/craftable-installer/blob/master/src/InstallCommand.php#L88
if DB is not set up correctly, installation will not continue.
Hello good night, I tried everything that is in the comments but nothing, I can not run it always comes out
here is my current solution: just install it manually so you will find the error:
for me it was my php installation doesn't have ext-exif
after enable the ext i can run craftable install
without problem.
ps: i think adding verbose message will help, since running craftable install --verbose still not print anything.
As of today, the installer doesn't work when taking all the steps provided by the wiki.
Either does it work given the solutions from this thread. Is there any solution on this bug yet?
@Errox have you read this comment? https://github.com/BRACKETS-by-TRIAD/craftable/issues/331#issuecomment-853819210
@Errox have you read this comment? https://github.com/BRACKETS-by-TRIAD/craftable/issues/331#issuecomment-853819210
Yes, I've read it, still got the same error. Verbose also doesn't provide much information.
Can you attach the whole output?
Hi, i got the same problem,
so i used the manual installation and its work perfectly https://getcraftable.com/docs/7.0/installation#manual-instalation
how enable the ext ??? craftable install --no-sail --verbose not works
composer require brackets/craftable --ignore-platform-reqs --with-all-dependencies works for me
make sure your database is ready and the .env file has the correct database name
On laravel 9 it tries to install craftable 8 and fails either way. Why is there no documentation for craftable version 8.0?
when trying to change the the db username and password in ENV file - and then run (craftable install) - this command rewrite the ENV file inside my project with the old values (sail - password), What I should do?
when trying to change the the db username and password in ENV file - and then run (craftable install) - this command rewrite the ENV file inside my project with the old values (sail - password), What I should do?
This is standard behaviour of the Sail: https://github.com/laravel/sail/blob/1.x/src/Console/InstallCommand.php#L139
If you prefer installing Craftable without Sail, try --no sail
option:
craftable install --no-sail
For me on running Craftable 8 on Windows 11 it was php extensions that was causing the problem. Follow the manual install process and composer will let you know which dependencies are failing and why.
didn't work for me too
Please, try to install it manually like written in this comment: https://github.com/BRACKETS-by-TRIAD/craftable/issues/331#issuecomment-853658164
Hi, I'm trying to install Craftable and here are the problems listed:
Thanks a lot for your help.
@dnauroy is it a fresh laravel install? Paste also your composer.json file. It looks you have some conflicting packages installed already.
Hi @palypster, yes I have installed Laravel yesterday. Here is the composer.json file:
{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "require": { "php": "^8.1", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.0", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", "maatwebsite/excel": "^1.1", "psr/simple-cache": "2.0" }, "require-dev": { "fakerphp/faker": "^1.9.1", "laravel/pint": "^1.0", "laravel/sail": "^1.18", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^7.0", "phpunit/phpunit": "^10.0", "spatie/laravel-ignition": "^2.0" }, "autoload": { "psr-4": { "App\": "app/", "Database\Factories\": "database/factories/", "Database\Seeders\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "scripts": { "post-autoload-dump": [ "Illuminate\Foundation\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] }, "extra": { "branch-alias": { "dev-master": "10.x-dev" }, "laravel": { "dont-discover": [] } }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true, "allow-plugins": { "pestphp/pest-plugin": true } }, "minimum-stability": "stable", "prefer-stable": true }
Maybe the reason why the install fails is because I've installed Laravel 10 and in your doc it is mentioned that Craftable is compatible with Laravel 8...
Yes, we haven't released support for Laravel 10 yet. It is compatible with Laravel 9 (not 8) (https://getcraftable.com/docs/8.0/installation). We will release it later.
In the meantime you can try our premium version - Craftable PRO, that has already support for Laravel 10.
Thanks, I will try. Because even with Laravel 9, I can't figure out why the installation process fails :/
If you are using Laravel 9, please make sure that you have downgraded psr/simple-cache to version 2.0 before requiring brackets/craftable:
composer require psr/simple-cache:^2.0 maatwebsite/excel
https://getcraftable.com/docs/8.0/installation#manual-instalation
The steps to install with craftable from 0 are as follows: 1 Create the project: craftable new 'my project'
DB_HOST=localhost DB_DATABASE=laravel DB_USERNAME= (you user) DB_PASSWORD=( you password)
use Illuminate\Support\Facades\Schema;
public function boot() { Schema::defaultStringLength(191); }
Inside:
config/database.php
replace for this line for mysql:
'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',
try: in .env file try: DB_HOST=localhost (work for me)
i am installing craftable composer global require brackets/craftable-installer craftable new my_project craftable install installation aborted.
how to fix this issue.