Commit ac664b2
committed
fix(npm_global): initialize nvm for Node.js package managers
Problem:
- ESLint and Claude Code upgrades failing with "node: not found"
- pnpm successfully installs packages but version checks fail
- Multiple manual installations shadowing pnpm installs
- npm_global.sh runs in non-interactive shell without nvm loaded
Changes:
- Add nvm initialization to npm_global.sh before version checks
- Load nvm.sh with --no-use flag to avoid startup messages
- Activate default Node.js version for package manager access
Resolution:
- Removed manual installations at ~/.local/bin/{eslint,claude}
- ESLint upgraded: 9.37.0 → 9.39.1 (pnpm)
- Claude Code upgraded: 2.0.33 → 2.0.34 (pnpm)
- Version detection now works correctly in installer scripts1 parent a400255 commit ac664b2
2 files changed
Lines changed: 371 additions & 378 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| |||
0 commit comments