laravel 9 インストール の時のメモ

《PHP8.1 インストール windows
    Windows10でphp8.1をインストールする方法
    https://arkgame.com/2022/06/30/post-310106/

 

■■PHP8.1 インストール
WindowsにPHP8をインストールする方法
https://webnote.i-sight.jp/install-windows-php8/

Microsoft Visual C++ 再配布可能パッケージ for Visual Studio 2019 が、これらの PHP バージョンと適合します。
確認方法:コントロールパネルのプログラムと機能(プログラムのアンインストール)を見る
・・・入っていた

VS16 x64 Thread Safe を選ぶ

C:\php81

> c:\php81\php -v
PHP 8.1.16 (cli) (built: Feb 14 2023 18:21:39) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.16, Copyright (c) Zend Technologies

環境変数に、以下を追加
c:\php81\php

 

 


《laravel インストール windows
■■Laravelのインストール手順(Windows
Composerのみ、これでインストールする。
https://blog.senseshare.jp/laravel-install.html
Composerはこれでいいが、Laravelはバージョンが必要なので、Laravelは他を参照。


《laravel 9 インストール windows

■■Laravel9を学習するためWindowsPCに環境構築
https://chikaraemon.com/wordpress/2022/06/04/laravel1/

Node.jsのインストール
node-v18.14.2-x64.msi

> node -v
v18.14.2
> npm -v
9.5.0


C:\dev01\source02 に移動
composer create-project "laravel/laravel=9.*" clptest

なんかエラーが出た
Creating a "laravel/laravel=9.*" project at "./clptest"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v9.5.2)
  - Downloading laravel/laravel (v9.5.2)
  - Installing laravel/laravel (v9.5.2): Extracting archive
Created project in C:\dev01\source02\clptest
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/framework[v9.36.4, ..., v9.52.4] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.12.3].
    - laravel/framework[v9.19.0, ..., v9.36.3] require league/flysystem ^3.0.16 -> satisfiable by league/flysystem[3.0.16, ..., 3.12.3].
    - league/flysystem[3.0.16, ..., 3.12.3] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.11.0].
    - league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.1.16) does not satisfy that requirement.
    - league/mime-type-detection[1.4.0, ..., 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
    - Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, ..., v9.52.4].

To enable extensions, verify that they are enabled in your .ini files:
    - C:\php81\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.

 

★★今日はここまでした。

 

npmをインストール


  なんか詰め込まれていた
  【Laravel】開発環境構築 Windows編 - チグサウェブ
  https://chigusa-web.com/blog/laravel-setup/2/

  Node.jsのインストール

  VSCodeのインストール

  全体的にインストールをする