【问题标题】:Trying to create my first node.js application: /bin/sh: 1: fpm: not found尝试创建我的第一个 node.js 应用程序:/bin/sh: 1: fpm: not found
【发布时间】:2015-12-04 09:59:55
【问题描述】:

我已按照以下步骤创建我的第一个 node.js 应用程序:

https://www.codementor.io/javascript/tutorial/how-to-create-cross-platform-desktop-apps-with-nwjs

问题:运行gulp pack:linux64:deb后在klout/dist目录下找不到任何东西,有什么帮助吗?

这是gulp pack:linux64:deb之后的输出:

https://gist.github.com/Ziiweb/ac0708acf689b7d6491d

这是gulp build:linux64之后的输出

https://gist.github.com/Ziiweb/65104ee6f7f109f3a41e

【问题讨论】:

  • 好像没有fpm
  • @kaytrance 我已经运行了sudo npm install fpmsudo npm install --save fpm,但我仍然知道/bin/sh: 1: fpm: not found.. 当然,/dist 仍然是空的,知道吗?
  • 您很可能必须使用 npm install -g fpm 全局安装它
  • @kaytrance 谢谢!它有效
  • 那么,如果不介意的话,我会重新发布它作为答案,以便您接受。

标签: node.js nw.js


【解决方案1】:

根据您提供的日志,fpm 缺失。您必须全局安装它才能构建工作

npm install -g fpm

【讨论】:

猜你喜欢
  • 2019-09-11
  • 1970-01-01
  • 2020-07-28
  • 1970-01-01
  • 2020-08-11
  • 2018-06-06
  • 2021-10-20
  • 1970-01-01
  • 2015-12-18
相关资源
最近更新 更多