`/ide` command fails with "onInstall is not defined" error
Resolved 💬 11 comments Opened Jan 28, 2026 by clthuang Closed Mar 10, 2026
Description
Running the /ide command in Claude Code fails with the error onInstall is not defined.
Steps to Reproduce
- Open Claude Code in terminal
- Run
/idecommand - Error occurs immediately
Error Message
ERROR onInstall is not defined
file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:4084:2901
- Su2 (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:4084:2901)
- m6 (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:62981)
- WAA (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:76041)
- u$ (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:75921)
- WAA (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:76830)
- u$ (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:75921)
- WAA (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:76020)
- u$ (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:75921)
- WAA (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:76020)
- u$ (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:75921)
Environment
- Claude Code version: 2.1.21 (latest)
- Node.js version: v22.14.0
- OS: macOS (Darwin 25.2.0)
- Installation method: npm global install
Expected Behavior
The /ide command should successfully connect Claude Code to the JetBrains IDE.
Actual Behavior
Command fails immediately with onInstall is not defined error.
Workaround
Using Cmd+Esc from within the JetBrains IDE works as an alternative to connect Claude Code with IDE integration.
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗