想要在ubuntu上装npm,直接使用系统推荐的命令sudo apt install npm,装的过程中各种报错,如下图:

ubuntu安装npm

原因是某些依赖包源地址没法访问,运行sudo apt-get install update对安装源进行更新,再运行命令sudo apt install npm,这次npm成功安装。

相关文章:

  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-01-24
  • 2021-06-02
  • 2021-12-24
猜你喜欢
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2022-02-22
相关资源
相似解决方案