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.

Missing write access to /usr/local/lib/node_modules

0
Posted at

現象

ターミナルでyarnを入れようとした際に

$ npm install yarn -g

でエラーが吐かれました

問題点

Missing write access to /usr/local/lib/node_modules

書き込み宣言は受け付けてないよ!とのこと。

解決方法

$ sudo chown -R $USER /usr/local/lib/node_modules

上記コマンドを叩いたら解決しました.

詳細
ルート宣言(sudo)でファイル(/usr/local/lib/node_modules)のオーナーをユーザ($USER)に変更(chown)

参考

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?