npm command - sudo or not?

前端 未结 5 795
梦如初夏
梦如初夏 2020-12-01 03:11

Currently I always run sudo npm install but as I understand it\'s not correct.

I want to have opportunity not to use it as root/Adm

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 03:40

    The two solutions offered here are are not something I would recommend because they are brute force solutions. Instead, I recommend reading One does not simply sudo npm

提交回复
热议问题