2

当我尝试yo jhipster在 Windows 7 32 位机器上生成时,出现以下错误:

bower json3#~3.2.5 progress received 3.7MB of 4.9MB download, 75% libjpeg-62.dll: 下载 [===================] 100% 0.0s

? 预构建测试失败,从源代码编译...

d:\Self_jhipster\node_modules\grunt-contrib-imagemin\node_modules\jpegtran-bin\ lib\check.js:19 throw new Error('build is not supported on' + process.platform);

                          ^ 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

如何解决这个错误?

4

2 回答 2

4

我是http://jhipster.github.io/的作者,这是您所指的生成器。

我找到了你的问题,它确实是 jpegtran-bin 中的一个错误。我已经更新了 Grunt.js 中的所有依赖项,现在它应该可以在 Windows 上正常工作了。

这将在下一个版本 (0.2.1) 中提交,应该会在几个小时内发布。

您还可以在https://github.com/jhipster/generator-jhipster/issues提交错误

于 2013-11-30T11:02:18.547 回答
1

在谷歌使用更正确的关键字之后,https://github.com/gruntjs/grunt-contrib-imagemin/issues/109的解决方案对我有用。

  1. 在应用程序的 package.json 中,"jpegtran-bin": "0.2.0"在引用之前添加imagemin,
  2. 在本地删除 node_module 文件夹。
  3. 再跑npm install
于 2013-11-25T07:10:38.473 回答