首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >约曼的角满堆栈有jpegtran-bin错误,3次失败。

约曼的角满堆栈有jpegtran-bin错误,3次失败。
EN

Stack Overflow用户
提问于 2014-03-01 01:54:33
回答 2查看 1.4K关注 0票数 2

我得到了Yeoman的发电机-角度-全堆栈并运行了yo angular-fullstack (没有Heroku),但是我得到了这些失败和错误:

代码语言:javascript
复制
  3 failing

  1) jpegtran should successfully proxy jpegtran:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runnable.js:165:14)
      at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

  2) jpegtran should minify a .jpg:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runnable.js:165:14)
      at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

  3) jpegtran "after all" hook:
     Error: ENOENT, no such file or directory 'test/minified.jpg'
      at Object.fs.unlinkSync (fs.js:760:18)
      at Context.<anonymous> (/home/ubuntu/fs_a/node_modules/jpegtran-bin/test/test-path.js:10:6)
      at Hook.Runnable.run (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runnable.js:211:32)
      at next (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runner.js:246:10)
      at Object._onImmediate (/home/ubuntu/fs_a/node_modules/jpegtran-bin/node_modules/mocha/lib/runner.js:258:5)
      at processImmediate [as _immediateCallback] (timers.js:330:15)



/home/ubuntu/fs_a/node_modules/jpegtran-bin/build.js:70
                        throw err;
                              ^
Error: Command failed: configure: error: no nasm (Netwide Assembler) found

    at ChildProcess.exithandler (child_process.js:637:15)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)

然后:

代码语言:javascript
复制
npm ERR! jpegtran-bin@0.2.0 postinstall: `node pre-build.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the jpegtran-bin@0.2.0 postinstall script.
npm ERR! This is most likely a problem with the jpegtran-bin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node pre-build.js
npm ERR! You can get their info via: 
npm ERR!     npm owner ls jpegtran-bin
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-54-virtual
npm ERR! command "/home/ubuntu/local/bin/node" "/home/ubuntu/local/bin/npm" "install"
npm ERR! cwd /home/ubuntu/fs_a
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE

我确实找到了jpegtran的github,并找到了一个类似问题,它的结尾是“我们将包括关于如何手动编译的说明”。

同时我该怎么做呢?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-03-05 13:22:20

我有同样的问题,我更新了尤曼和我的发电机,它为我解决了这个问题。

尝试运行npm update -g yo,然后运行yo并选择更新生成器的选项。

注意:-如果您使用的是较早版本的节点(< 1.2.10),您必须分别更新bower和grunt-cli,并确保它是您正在更新的全局版本,而不是本地版本。

票数 1
EN

Stack Overflow用户

发布于 2014-03-05 15:57:03

我与开发人员讨论了角满堆栈,他建议我执行以下操作,因为我在mongoose和jpegtran上有问题,而且我没有MongoDB服务器。角-满堆栈只连接到Mongodb,它不为您安装它的软件包。

  1. yo angular-fullstack --skip-install
  2. 在package.json中更改以下内容: ..。“猫鼬”:“最新”。"jpegtran-bin":“最新”
  3. bower install
  4. npm install
  5. 以某种方式获取MongoDB ( 把它安装在我的Ubuntu机器上或从MongoLab或MongoHQ托管它)

但是您可以像jonnieM建议一样更新生成器,因为在结束与角满堆栈的开发人员的讨论。,他在角满堆栈中修复了猫鼬和jpegtran问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22109098

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档