3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VSCodeで拡張機能がインストールできない

Posted at

拡張機能がインストールできない

こんなメッセージが出てた。

EPERM: operation not permitted, open 'C:\Users\%USERNAME%\.vscode\extensions\...'
Failed to install 'パッケージ名'
please manually install the downloaded VSIX of 'パッケージ名'

tl;dr

  • C:\Users\%USERNAME%\.vscode\extensions\.obsoleteを削除した。
    • あんまり深く追求してないので、あくまで私の場合は上手くいった話です。

対応

  • エラーメッセージで調べたけど、まんま同じ情報があまり見つけられなかったので、とりあえずC:\Users\%USERNAME%\.vscode\extensions\を見に行った。
  • .obsoleteには過去にアンインストールされた拡張機能が書き込まれていくらしいが、なぜか中身がスカスカだったので、いったんバックアップ取ってから削除してみた。
  • VSCodeを再起動したら、無事に拡張機能がインストールできるようになった。
    • .obsoleteもまた勝手に作られたが、今度は中身がちゃんと書き込まれてそう。
    • 今使ってる拡張機能が消えたり、アンインストールした拡張機能が復活したりするかな?と思ったけど、私の場合は特にそんなことは無く、何も異常無しでした。

参考

3
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?