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?

vscodeのclaude拡張機能を開くと、Error: Claude Code requires Node.js version 18 or higher to be installed.となる

Posted at

ある日突然、vscodeのclaude拡張機能を開くと、Error: Claude Code requires Node.js version 18 or higher to be installed.となった。

環境

・mac
・ローカルには、homebrewでNode.js v24.2.0をインストール済み

解決法

・claude拡張機能が、homebrewでインストールしたNodeを認識できるようにpathを通す。
・シェル設定ファイル(~/.zshrc 等)に、以下の記述を追加する。

eval "$(/opt/homebrew/bin/brew shellenv)"

・/opt/homebrew/bin/brew shellenvは、homebrewのpath登録に必要なコマンドを文字列で出力するコマンド
(export HOMEBREW_PREFIX="/opt/homebrew"; 等)
・eval は$()内を実行するコマンド

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?