pastilhas
ebd8778007
fix: refactor setup scripts for system-wide Node.js (no nvm)
BREAKING: Officer now uses system Node.js via NodeSource instead of nvm.
Changes:
- Removed nvm sourcing from setup.sh
- Updated Node installation to use NodeSource repository
- All npm global packages installed system-wide with sudo
- Updated PTY sidecar setup to use /usr/bin/node (system node)
- Added Pi validation (test --list-models)
- System packages now available to all users automatically
Benefits:
- Multi-user friendly: all users get same Node version
- No per-user environment setup needed
- Simpler troubleshooting (one node version)
- Services use consistent node binary
- Prevents snap node incompatibility issues
Fixes:
- 'node not found' for secondary users
- systemd services finding correct node
- Pi installation consistency across users
New Files:
- SETUP_GUIDE.md: Comprehensive installation guide
- SETUP_ANALYSIS.md: Technical analysis of previous issues
Migration:
- Remove nvm if installed (optional)
- Run: curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
- Run: sudo apt-get install -y nodejs
- Run: bash scripts/setup.sh
2026-03-04 02:09:47 +00:00
..
2026-02-25 07:27:30 +00:00
2026-03-02 20:00:45 +00:00
2026-03-02 20:00:45 +00:00
2026-02-26 17:42:59 +00:00
2026-02-26 01:39:38 +00:00
2026-02-23 09:58:08 +00:00
2026-02-26 17:42:59 +00:00
2026-02-26 17:42:59 +00:00
2026-02-16 19:34:35 +00:00
2026-03-04 01:45:36 +00:00
2026-03-02 20:00:45 +00:00
2026-03-04 01:45:36 +00:00
2026-03-04 02:09:47 +00:00
2026-03-04 02:09:47 +00:00