macOS上的autoreconf錯誤導致無法安裝問題


最近接手一個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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM