Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 9016

Vue CLI のインストールで躓いた場合

$
0
0

公式サイトのインストールコマンドを打ったのにインストールできない。

環境 : Mac OS Catalina 10.15.6
シェル : ZSH
nodenv : 1.3.2
node : v8.11.3

インストールコマンド

% npm install -g @vue/cli

エラーメッセージ

npm ERR! code E404
npm ERR! 404 Not Found: @vue/cli-ui@^4.4.6

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/whoami/.npm/_logs/2020-08-06T07_59_42_517Z-debug.log

解決方法

以前インストールした(インストール失敗した?)すべてのvue cliを削除します。

sudo npm uninstall --global vue-cli
sudo npm uninstall --global @vue/cli

最新バージョンをインストールします。

sudo npm install --global @vue/cli@latest

バージョンを確認

vue -V

Viewing all articles
Browse latest Browse all 9016

Trending Articles