0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Ubuntu22.04LTS】VSCode上でファイルの保存ができない

Posted at

VSCodeでソース編集中、
右下に下の警告メッセージが出力される場合

image.png
Failed to save 'Timer.tsx': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.

使用しているユーザがソース保存先のディレクトリの編集権限を持っていないので
権限を付与。

‐‐‐‐‐‐‐‐‐‐‐‐‐‐
権限の付与1:対象ディレクトリのオーナーを変更

sudo chown -v username directory

権限の付与2:対象ディレクトリの編集権限を変更(777はすべてのユーザにディレクトリの編集権限を付与)

sudo chmod 777 -R directory
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?