Skip to content

feat: add support for multiple package manager #424

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

pushpak1300
Copy link

This PR adds support for additional popular Node.js package managers Yarn, Bun, and PNPM. Currently, the Laravel installer only supports npm, which can be restrictive for third-party starter kits that use a different package manager. Supporting these out of the box would make the installer more flexible and developer-friendly.

This also introduces a new --node option, allowing users to default to detected package manager. Passing --npm will result into using npm package manger.

This is a non-breaking change.

Thanks.

@@ -303,23 +304,32 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln('');
}

$runNpm = $input->getOption('npm');
$runNpm = $input->getOption('npm') || $input->getOption('node');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe?

Suggested change
$runNpm = $input->getOption('npm') || $input->getOption('node');
$runNpm = $input->getOption('npm') ?: $input->getOption('node');

@pushpak1300 pushpak1300 requested a review from MrPunyapal June 22, 2025 12:41
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

Successfully merging this pull request may close these issues.

2 participants