From 6e3d023fee64d030519ebd88ad0e5ac0c5ac7997 Mon Sep 17 00:00:00 2001 From: Roberto Aguilar Date: Wed, 27 Aug 2025 23:55:51 -0600 Subject: [PATCH] Install `node` as part of Laravel's dev env (#1201) When running `laravel new`, if a starter kit like `React` or `Vue` are selected, the installer will ask: ``` Would you like to run npm install and npm run build? ``` And in order for it to work, `npm` should be available. Having this installed will definitively smooth out the experience from install to up-and-running! --- bin/omarchy-install-dev-env | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-install-dev-env b/bin/omarchy-install-dev-env index 5453e8d..1865992 100755 --- a/bin/omarchy-install-dev-env +++ b/bin/omarchy-install-dev-env @@ -33,6 +33,11 @@ install_php() { done } +install_node() { + echo -e "Installing Node.js...\n" + mise use --global node@lts +} + case "$1" in ruby) echo -e "Installing Ruby on Rails...\n" @@ -42,8 +47,7 @@ ruby) echo -e "\nYou can now run: rails new myproject" ;; node) - echo -e "Installing Node.js...\n" - mise use --global node@lts + install_node ;; bun) echo -e "Installing Bun...\n" @@ -64,6 +68,7 @@ php) laravel) echo -e "Installing PHP and Laravel...\n" install_php + install_node composer global require laravel/installer echo -e "\nYou can now run: laravel new myproject" ;;