安装gulp时报错 Error: autoreconf -ivf && ./configure --disable-gifview --disable-gifdiff --

168 阅读1分钟

 × Error: autoreconf -ivf && ./configure --disable-gifview --disable-gifdiff --prefix="E:\gitdemo\yayibang\node_modules\gifsicle\vendor" --bindir="E:\gitdemo\yayibang\node_modules\gifsicle\vendor" && make install
Command failed: autoreconf -ivf
'autoreconf' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�����������

    at ChildProcess.exithandler (child_process.js:289:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

解决办法:

     npm install autoconf

其他解决办法:

www.jianshu.com/p/b1e196d59…

     

  • Update Xcode command line tools to latest release
  • brew install nasm (I was using the bundled OS X version 0.98.40, now using 2.11.08)
  • npm cache clean
  • npm install