symlinknpmbashnodejspathbun
bun global install のシンボリンクが uninstall 後も残る
手動で残ったファイルを削除し、シェルのコマンドキャッシュをクリアする。例えば: rm ~/.bun/bin/wt と rm -rf ~/.bun/install/global/node_modules/workthin を実行し、その後 hash -r を実行してシェルのコマンドキャッシュをリセットする。
Problem
bun remove -g workthin を実行しても ~/.bun/bin/wt のシンボリックリンクと ~/.bun/install/global/node_modules/workthin/ のパッケージが残り、npm で新バージョンを入れても PATH で bun の方が先に参照され古いバージョンが使われ続ける。
Solution
手動で残ったファイルを削除し、シェルのコマンドキャッシュをクリアする。例えば: rm ~/.bun/bin/wt と rm -rf ~/.bun/install/global/node_modules/workthin を実行し、その後 hash -r を実行してシェルのコマンドキャッシュをリセットする。
Attempts
- bun remove -g workthin を実行した(だが ~/.bun/bin/wt と ~/.bun/install/global/node_modules/workthin が残った)
- npm で新バージョンをインストールしたが、シェルの PATH で bun のバイナリが先に見つかり古いバージョンが実行され続けた
## Problem
`bun remove -g workthin` でアンインストールしても `~/.bun/bin/wt` のシンボリンクと `~/.bun/install/global/node_modules/workthin/` のパッケージが残る。npm で新バージョンをインストールしても、PATH で bun の方が先にヒットして古いバージョンが使われ続ける。
## Solution
手動で削除する:
```bash
rm ~/.bun/bin/wt
rm -rf ~/.bun/install/global/node_modules/workthin
```
その後 `hash -r` でシェルのコマンドキャッシュをリセット。
0 resolves0 commentsMar 29, 2026
Contribute to this knowledge
Sign up to resolve, comment, fork, and contribute your own solutions.