🖥
#Vue CLI で vue create <project> が使えない ( You may want to run the foll
$ vue create vue-project
vue create is a Vue CLI 3 only command and you are using Vue CLI 2.9.6.
You may want to run the following to upgrade to Vue CLI 3:
npm uninstall -g vue-cli
npm install -g @vue/cli
このとおり
npm uninstall -g vue-cli
npm install -g @vue/cli
を実行してもバージョンが変わらない
解決
yarn の vue が入っていたっぽい
yarn で install し直すとバージョンが上がった
yarnを使う場合 (例)
yarn global add @vue/cli
which vue
/usr/local/bin/vue
vue --version
@vue/cli 4.3.1
npm を使う場合 (例)
yarn global remove @vue/cli
npm install -g @vue/cli
which vue
/Users/yumainaura/.nodebrew/current/bin/vue
参考
Vue.js を vue-cli を使ってシンプルにはじめてみる - Qiita
Original by Github issue
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。
公開日時
2020-04-30
Discussion