Global Node modules not installing correctly. Command not found

前端 未结 9 1047
北荒
北荒 2020-11-29 20:26

I am having a problem installing global node modules and everything I find online says the solve is just adding -g. Which is not the problem. I believe it\'s a linking issue

9条回答
  •  一生所求
    2020-11-29 20:51

    1. Add the following line to your ~/.bash_profile

      export PATH="$HOME/.npm/bin:$PATH"
      
    2. Load bash profile

      bash -l
      

提交回复
热议问题