Skip to content

Cannot install Livewire without global Composer? #584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
miclaus opened this issue Jan 5, 2021 · 2 comments
Closed

Cannot install Livewire without global Composer? #584

miclaus opened this issue Jan 5, 2021 · 2 comments

Comments

@miclaus
Copy link
Contributor

miclaus commented Jan 5, 2021

  • Jetstream Version: latest
  • Jetstream Stack: Livewire
  • Laravel Version: ^8.12
  • PHP Version: 7.3.1
  • Database Driver & Version: -

Description:

I'm trying to install Jetstream with Livewire as suggested by the Jetstream documentation, however it does not seem to work. It seems it's because I'm not using a gobally installed Composer.

I think this should also be possible with only a composer.phar.

Steps To Reproduce:

  1. Downloaded Composer v2.0.8 with the official Composer download script
  2. Installed Laravel: php composer.phar create-project laravel/laravel
  3. Require Sanctum: php composer.phar require laravel/sanctum
    (A step which is not outline very well in the documentation.)
  4. Require Jetsteam: php composer.phar require laravel/jetstream
  5. Tried installing Livewire: php artisan jetstream:install livewire

Console output:

$ php artisan jetstream:install livewire
sh: line 0: exec: composer: not found
Copied Directory [/vendor/laravel/sanctum/database/migrations] To [/database/migrations]
Copied File [/vendor/laravel/sanctum/config/sanctum.php] To [/config/sanctum.php]
Publishing complete.

When ignoring the error and serving the Laravel app and then authenticating with a user, the Livewire Blade directives are shown in the Dashboard:

@livewireStyles
@livewire('navigation-dropdown')
...
@livewireScripts
@driesvints
Copy link
Member

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

@miclaus
Copy link
Contributor Author

miclaus commented Jan 5, 2021

see #588 for what i used as a quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants