0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

nodebrewをインストールしてnpmコマンドを実行できるようにする

Last updated at Posted at 2024-02-22

Laravelで使用できるようにする

composer require laravel/breeze:^1.13 --dev

php artisan breeze:install

php artisan migrate

npm install

// 開発サーバー起動
npm run dev

// 本番用にファイル出力
npm run build 

npmコマンドが実行できない場合

下記のコマンドを実行

nodebrew ls
v20.8.0

current: none

current: noneだと、npmが使用できないので、下記のコマンドを実行する
バージョンは適宜変更してほしい。

nodebrew use v20.8.0 

実行後確認

nodebrew ls   
v20.8.0

current: v20.8.0

下記のコマンドで、バージョン確認ができればOK

npm -v
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?