yo angular 报错,求解


执行 yo angular ,提示这个错误,求解


 ⚠ The `/Library/WebServer/app/yo/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor/jpegtran` binary doesn't seem to work correctly
  ⚠ jpegtran pre-build test failed
  ℹ compiling from source
  ✖ Error: CFLAGS="-m32" LDFLAGS="-m32" ./configure --disable-shared --prefix="/Library/WebServer/app/yo/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor" --bindir="/Library/WebServer/app/yo/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor" && make install
Command failed: /bin/sh -c CFLAGS="-m32" LDFLAGS="-m32" ./configure --disable-shared --prefix="/Library/WebServer/app/yo/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor" --bindir="/Library/WebServer/app/yo/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor"
configure: error: cannot find install-sh or install.sh in . ./.. ./../..

node.js yeoman

我才是粽子 9 years, 9 months ago

我自己试了下这个 generator ,没什么错。这个错报的实在有点疑惑。没用过这个 generator 。如果你对 es6 webpack 有点兴趣的话,做个广告,试试我这个 generator-es6-angular

做人渣真好 answered 9 years, 9 months ago

Your Answer