在~/.bashrc后加上

export PATH=$PATH:/home/test/.npm-global/bin

绿色部分是我的路径,你可以替换成你的

 

参考链接:https://blog.csdn.net/m0_37263637/article/details/81942435

相关文章:

  • 2021-06-15
  • 2021-11-21
  • 2021-08-22
  • 2021-11-17
  • 2021-05-23
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-17
  • 2021-09-08
  • 2021-06-23
  • 2021-07-25
  • 2022-12-23
相关资源
相似解决方案