LoginSignup
1
0

More than 1 year has passed since last update.

Mac で Vue CLI を利用するまで

Posted at

※ mac で行っています。うまく解決できるとは限らないのでご注意ください

※ 当方初学者ですのでもっといい方法はあると思います。


下準備

  • よく分からんが Vue CLI を使うといいらしい
  • Vue CLI を使うためには npm が必要
  • npm は Node.js のパッケージ管理ツールであるため、 Node.js のインストールが必要
  • Node.js のインストールに限らず Mac で行うなら homebrew で行うといいらしい

つまり開発環境を作成するためには上記を逆順で行う必要がある!

homebrew のインストール

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

homebrew のバーションを確認

$ brew --version

node.js のインストール

brew install node

nodeのバーションを確認

$ node -v

Vue CLI のインストールする

npm install -g @vue/cli

Vue CLI のバーションを確認

$ vue --version

「bash: vue: command not found」と出て上手くいかないよ!

こちらの記事を参考にさせていただきました

Vue CLIをインストール後vue: command not foundになる

うまくいったと思ったら確認する

$ vue --version

今回は以上です。ここまで読んでいただきありがとうございました

1
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
1
0