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

ClaudeCode環境構築で困ったこと

Posted at

ClaudeCode環境構築で困ったこと

この記事の内容

  • ClaudeCodeやってみよ!と思ったものの起動でつまずいたので備忘として残しておきます 📝

ClaudeCode導入手順

起動時にエラー ❌️

% claude

(中略)

SyntaxError: Unexpected token '{'
    at Loader.moduleStrategy (node:internal/modules/esm/translators:147:18)
    at async link (node:internal/modules/esm/module_job:64:21)

Nodeのバージョンを上げても古いバージョンが参照される

  • バージョンアップ実施、まだv16が参照されている状態

    % node -v
    v16.4.0
    

色んなところからインストールしたnodeが混在していた

  • こちらの記事の通り、インストール元が混在していてバージョン切り替えができない状態になっていたよう

  • 上記の記事に沿ってnodeを一旦すべて削除・nodebrewでnodev20をインストールし直す

    % node -v
    v20.0.0
    

ClaudeCode起動 ⭕️

  • 起動 🎉
    image.png

最後に

  • Claude起動で困ったことでした。
  • 今度はClaudeCode触ってみた記事を書きたいです ☺️
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?