Claude Code を Cursor にインストールした


2026年03月03日


Claude Code を Cursor にインストールしたメモ

Google Antigravityよりは、優秀?


【参考サイト】


Claude Codeでトークン制限エラーが発生した時の対処法

https://note.com/real_pansy2412/n/n0ad534273b7b

エラーの原因
このエラーは、Claude Codeを使用している際にClaudeの応答が32,000トークンの出力制限を超えたために発生します。

⏺ anctl:function_calls
  ⎿  API Error: Claude's response exceeded the 32000 output token maximum. To configure this behavior, set the
     CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable.

macos Cursor 再起動コマンド 

下記の解決方法
ーーー
  IDE: ✘ Error installing Cursor extension: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: cursor --force --install-extension anthropic.claude-code
       Premature close
       Please restart your IDE and try again.


⏺ The VSIX file isn't included in your Claude Code installation (v2.1.68). You can install the extension directly from the marketplace instead:                                                             

  /Applications/Cursor.app/Contents/Resources/app/bin/cursor --install-extension anthropic.claude-code                                                                                                      

  Want me to try that?


 IDE: ✘ Error installing Cursor extension: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: cursor --force --install-extension anthropic.claude-code                                                     
       Premature close                                                                                                                                                                                      
       Please restart your IDE and try again.

このエラーはClaude Codeが起動するたびに自動で --force インストールを試みて失敗しているようです。

根本的な解決策:cursor コマンドのPATH問題を修正する

ターミナルで確認:

bash
which cursor
/usr/local/bin/cursor などが返ってくるか確認。返ってこない場合:

bash
# シンボリックリンクを作成
sudo ln -sf "/Applications/Cursor.app/Contents/Resources/app/bin/cursor" /usr/local/bin/cursor
作成後、Cursor を完全再起動して試してください。


Archive