【问题标题】:Hipster stack (Yeoman + Maven + Spring) Error时髦堆栈(Yeoman + Maven + Spring)错误
【发布时间】:2013-12-10 02:26:03
【问题描述】:

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

bower json3#~3.2.5 收到进度 3.7MB of 4.9MB 已下载,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('+ 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

如何解决这个错误?

【问题讨论】:

    标签: spring yeoman yeoman-generator jhipster


    【解决方案1】:

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

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

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

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

    【讨论】:

    • 0.2.1 版在 Windows 32 位中看起来不错。顺便说一句,如果我们使用 Compass,应该在我们第一次运行 mvn jetty:run 之前运行 grunt server 来编译 css。
    • 非常感谢!我没有 Windows,所以我很难测试!我去看看指南针。
    【解决方案2】:

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

    1. 在应用程序的package.json中,在前面加上"jpegtran-bin": "0.2.0" imagemin的参考,
    2. 在本地删除 node_module 文件夹。
    3. 再次运行npm install

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-27
      • 1970-01-01
      • 2017-08-15
      • 1970-01-01
      • 2010-09-10
      • 2013-09-11
      • 1970-01-01
      相关资源
      最近更新 更多