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?

More than 5 years have passed since last update.

パーミッションエラー(permmision error) の時、オールラウンドに使える解決手順

Posted at

最初にツールをインストールした場所を特定します。

例.npm

npm config get prefix

その場所の所有者をあなたに変更します。

chown : チェンジオーナー 所有者を変更
-R : ディレクトリと配下全てを変更
whoami : ログイン中のユーザ名を取得
{DirA,DirB,...,DirN}: ディレクトリを複数指定する場合

sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}

[コマンドの直訳]
所有権変更  ディレクトリを変更  ログイン中のユーザ  ディレクトリの場所

こちらの記事を参考にしました→https://qiita.com/okohs/items/ced3c3de30af1035242d

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?