Commit c318ec9
committed
fix(env): use rename-before-copy for all Windows shims on refresh
On Windows, .exe files may be locked by antivirus, search indexer,
or still-running processes. The remove_file call fails with "Access
denied" (os error 5), preventing npm/npx/vpx shims from being
refreshed.
Apply the same rename-to-.old pattern used for vp.exe to all tool
shims during --refresh. Cleanup of .old files runs after all shims
are created.1 parent 5fb8073 commit c318ec9
1 file changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
197 | | - | |
198 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
199 | 218 | | |
200 | 219 | | |
201 | 220 | | |
| |||
0 commit comments