Commit bc4c1c5
committed
fix(media/image): expand sharp-install hint to cover global installs
Codex review on PR #77197 noted: the previous hint suggested local install
commands (pnpm add sharp / npm install sharp / bun add sharp) but the
scenario operators most often hit is a global `npm install -g openclaw`
where the global runtime resolves `sharp` from openclaw's own global
node_modules, so a workspace install does not actually fix the failure on
restart.
Expand the thrown error to include both repair postures: the existing local
commands plus an explicit global path (`npm install -g openclaw@latest
--include=optional` or `npm install -g sharp`) so operators on either
install posture get a working remediation.
Update the regression test to assert both surfaces appear in the message.1 parent 6842bd5 commit bc4c1c5
2 files changed
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
179 | | - | |
180 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
182 | 192 | | |
183 | 193 | | |
184 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
708 | 715 | | |
709 | 716 | | |
710 | 717 | | |
711 | 718 | | |
712 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
713 | 722 | | |
714 | 723 | | |
715 | 724 | | |
| |||
0 commit comments