Open16
React Next.js Laravel Tutorial by Mac
% brew -v
Homebrew 4.0.21
% brew update
% brew -v
Homebrew 4.3.3
% brew cleanup
% brew install nodebrew
% nodebrew -v
% mkdir -p ~/.nodebrew/src
% nodebrew install-binary latest
% nodebrew ls
v22.2.0
current: none
% nodebrew use v22.2.0
use v22.2.0
% node -v
v22.2.0
% npm info npm version
10.8.1
% npm install -g npm@10.8.1
% npm -v
10.8.1
% npx create-next-app@latest nextjs
% cd nextjs
% npm run dev
% php -v
PHP 8.3.8 (cli) (built: Jun 4 2024 14:53:17) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.8, Copyright (c) Zend Technologies
with Zend OPcache v8.3.8, Copyright (c), by Zend Technologies
% brew install composer
% composer -V
Composer version 2.7.6 2024-05-04 23:03:15
% composer create-project laravel/laravel laravel
% cd laravel
% php artisan serve