最近接手一个vue项目,在macos(10.15)上安装的时候报了很多的错误。执行安装

npm install

其中一个错误

EACCES: permission denied

尝试使用使用以下命令,似乎解决上面的问题

sudo npm install -unsafe-perm=true

另一个错误是说找不到命令

Command failed: /bin/sh -c autoreconf -fiv
/bin/sh: autoreconf: command not found

单独安装autoreconf和nasm似乎还是不行

brew install nasm

提示命令执行失败: ...Command failed: autoreconf -ivf...

最后使用以下命令,似乎最终解决问题。

brew install autoconf automake libtool

因为我执行过多个命令,所以只能说似乎最终解决。是否多个命令共同效果。暂未知。

下面是一个参考的网页,但跟我的解决办法有所不同

https://github.com/imagemin/imagemin/issues/168

相关文章:

  • 2021-07-06
  • 2021-09-16
  • 2022-12-23
  • 2021-12-04
  • 2022-01-23
  • 2021-08-15
  • 2022-01-02
  • 2022-12-23
猜你喜欢
  • 2022-01-21
  • 2022-12-23
  • 2021-09-03
  • 2021-09-10
  • 2021-06-26
  • 2023-02-20
  • 2021-12-04
相关资源
相似解决方案