LoginSignup
9
10

More than 5 years have passed since last update.

npmがsudoでしか実行出来ない時の対処方

Last updated at Posted at 2014-06-09

対処方


$ sudo chown -R `whoami` /usr/local/lib/node_modules

追記

  • /home/ユーザ/tmpがrootで作成されている場合もエラーになるので,こちらも変更.

$ sudo chown -R `whoami`  /home/`whoami`/tmp
9
10
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
9
10