当我尝试在Windows 7 32位计算机上使用yo jhipster
生成时,我收到以下错误:
bower json3#~3.2.5进度收到3.7MB的4.9MB 已下载,75%libjpeg-62.dll:正在下载[===================] 100%0.0s?预构建测试失败,从源代码编译......
d:\ Self_jhipster \ node_modules \咕噜-的contrib-imagemin \ node_modules \ jpegtran斌\ LIB \ check.js:19 抛出新错误('+ process.platform'不支持'building};
^ Error: building is not supported on win32 at d:\Self_jhipster\node_modules\grunt-contrib-imagemin\node_modules\jpegtran-bin\lib\check.js:19:10
如何解决此错误?
答案 0 :(得分:4)
我是http://jhipster.github.io/的作者,这是你所指的生成器。
我找到了你的问题,这确实是jpegtran-bin中的一个错误。我已经更新了Grunt.js中的所有依赖项,它现在应该在Windows上正常工作。
这将在下一个版本(0.2.1)中提交,该版本应在几个小时内完成。
提交错误答案 1 :(得分:1)
谷歌使用更正确的关键字后,https://github.com/gruntjs/grunt-contrib-imagemin/issues/109的解决方案适用于我。
"jpegtran-bin": "0.2.0"
imagemin
的参考,npm install
。