yarn install --no-bin-links 後一直顯示waiting...

錯誤現象:

Laravel入門教程中有一個語句:

>yarn install --no-bin-links

運行後顯示如下信息:

vagrant@homestead:~/Code/sample$ yarn install --no-bin-links

yarn install v0.27.5

info No lockfile found.

[1/4] Resolving packages...

warning laravel-mix > img-loader > imagemin-gifsicle > gifsicle > bin-build > do wnload > gulp-decompress > [email protected]: gulp-util is deprecated - replace it , following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5

[2/4] Fetching packages...

warning [email protected]: The platform "linux" is incompatible with this module.

info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.

[3/4] Linking dependencies...

[4/4] Building fresh packages...

[-/6] ⠂ waiting...

[-/6] ⠄ waiting...

[3/6] ⠄ mozjpeg: ℹ compiling from source

[-/6] ⠄ waiting...

[-/6] ⠄ waiting...

解決辦法:

安裝libpng16-dev

由於我的系統是CentOS,採用以下方法安裝:

>wget http://prdownloads.sourceforge.net/libpng/libpng-1.5.4.tar.gz?download

>tar xzf libpng-1.5.4.tar.gz

>cd libpng-1.5.4

>./configure --prefix=/usr/local/libpng

>make

>make install

然後再按照教程中的步驟進行安裝

>yarn install --no-bin-links

>yarn add cross-env

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章