Issue Title: Yarn Command Execution Failure: Global Commands Deprecated
Resolved 💬 4 comments Opened May 2, 2025 by cloudonshore Closed Jan 3, 2026
Bug Description
Any time I try to run get claude to run yarn commands I get : Error: /var/folders/2p/st782c7974n9q47lcqlcxdh40000gn/T/claude-shell-snapshot-0089:export:6951: not valid in this context: global commands have been removed in 2.x - consider using yarn
Environment Info
- Platform: macos
- Terminal: iTerm.app
- Version: 0.2.100
- Feedback ID: f4b8d48a-bc2a-4f11-b23c-b9b3b09a9240
Errors
[{"error":"ShellError: Shell command failed\n at Object.call (file:///Users/samuelwalker/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:880)\n at async bI8 (file:///Users/samuelwalker/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2007:15442)\n at async gz1 (file:///Users/samuelwalker/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2007:13808)\n at async xI8 (file:///Users/samuelwalker/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2007:13088)\n at async v60 (file:///Users/samuelwalker/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2007:13022)\n at async rt (file:///Users/samuelwalker/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2007:12267)\n at async Y4 (file:///Users/samuelwalker/.nvm/versions/node/v20.19.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2057:1570)","timestamp":"2025-05-02T22:38:15.578Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗