Skip to content

Instantly share code, notes, and snippets.

@skysan87
Last active October 20, 2021 13:34
Show Gist options
  • Save skysan87/5e323834552501f7cee475b26d56a4ce to your computer and use it in GitHub Desktop.
Save skysan87/5e323834552501f7cee475b26d56a4ce to your computer and use it in GitHub Desktop.
vue-cliをグルーバルにインストールせずにプロジェクト作成する

vue-cliをグルーバルにインストールせずにプロジェクト作成する

必須条件

  • npm v5.2以上
    • それ以前のバージョンはnpxのパッケージをグローバルにインストール

ローカルにVue CLIをインストール

  • Vue 2
$ npm install vue-cli 
  • Vue 3
$ npm install @vue/cli

コマンド実行時にnpxを先頭につける

  • Vue 2
$ npx vue init webpack my-project
  • Vue 3
$ npx vue create my-project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment