NPM permission error while installing

前端 未结 4 1480
别那么骄傲
别那么骄傲 2021-01-14 09:19

i am trying to install yeoman on my server but for some reason do i keep getting a permission denied error.

$npm install -g yo
/root/.node/bin/yo -> /root         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-14 09:30

    To avoid permission errors, install node with nvm.

    See the detailed solution here: npm install g less does not work

提交回复
热议问题